Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/09/2012 11:00:59 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Audit the usage of $bp->is_item_admin and $bp->is_item_mod to use the _is_ functions isntead. Also fix some $bp globals in the process. See #3989.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-classes.php

    r5644 r5687  
    13041304
    13051305        // Construct the admin edit tab for the new group extension
    1306         if ( !empty( $this->enable_edit_item ) && !empty( $bp->is_item_admin ) ) {
     1306        if ( !empty( $this->enable_edit_item ) && bp_is_item_admin() ) {
    13071307            add_action( 'groups_admin_tabs', create_function( '$current, $group_slug', '$selected = ""; if ( "' . esc_attr( $this->admin_slug ) . '" == $current ) $selected = " class=\"current\""; echo "<li{$selected}><a href=\"' . trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/{$group_slug}/admin/' . esc_attr( $this->admin_slug ) ) . '\">' . esc_attr( $this->admin_name ) . '</a></li>";' ), 10, 2 );
    13081308
     
    13321332
    13331333function bp_register_group_extension( $group_extension_class ) {
    1334     global $bp;
    13351334
    13361335    if ( !class_exists( $group_extension_class ) )
Note: See TracChangeset for help on using the changeset viewer.