Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/13/2014 04:05:21 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Update bp_is_group_admin_screen() to use bp_is_group_admin_screen(), and add phpdoc block.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-template.php

    r8824 r8825  
    30603060}
    30613061
    3062 function bp_is_group_admin_screen( $slug ) {
    3063     if ( !bp_is_groups_component() || !bp_is_current_action( 'admin' ) )
    3064         return false;
    3065 
    3066     if ( bp_is_action_variable( $slug ) )
    3067         return true;
    3068 
    3069     return false;
     3062/**
     3063 * Is the current page a specific group admin screen?
     3064 *
     3065 * @since BuddyPress (1.1)
     3066 *
     3067 * @param string $slug
     3068 * @return string
     3069 */
     3070function bp_is_group_admin_screen( $slug = '' ) {
     3071    return (bool) ( bp_is_group_admin_page() && bp_is_action_variable( $slug ) );
    30703072}
    30713073
Note: See TracChangeset for help on using the changeset viewer.