Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/17/2011 02:36:20 PM (14 years ago)
Author:
boonebgorges
Message:

Ensure that the Group Extension API uses the root slug when creating edit tab links

File:
1 edited

Legend:

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

    r3982 r4048  
    11471147        // Construct the admin edit tab for the new group extension
    11481148        if ( !empty( $this->enable_edit_item ) && !empty( $bp->is_item_admin ) ) {
    1149             add_action( 'groups_admin_tabs', create_function( '$current, $group_slug', '$selected = ""; if ( "' . esc_attr( $this->slug ) . '" == $current ) $selected = " class=\"current\""; echo "<li{$selected}><a href=\"' . bp_get_root_domain() . '/' . $bp->groups->slug . '/{$group_slug}/admin/' . esc_attr( $this->slug ) . '\">' . esc_attr( $this->name ) . '</a></li>";' ), 10, 2 );
     1149            add_action( 'groups_admin_tabs', create_function( '$current, $group_slug', '$selected = ""; if ( "' . esc_attr( $this->slug ) . '" == $current ) $selected = " class=\"current\""; echo "<li{$selected}><a href=\"' . bp_get_root_domain() . '/' . $bp->groups->root_slug . '/{$group_slug}/admin/' . esc_attr( $this->slug ) . '\">' . esc_attr( $this->name ) . '</a></li>";' ), 10, 2 );
    11501150
    11511151            // Catch the edit screen and forward it to the plugin template
Note: See TracChangeset for help on using the changeset viewer.