Changeset 3375
- Timestamp:
- 11/07/2010 12:10:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-classes.php
r3372 r3375 1151 1151 1152 1152 // Construct the admin edit tab for the new group extension 1153 if ( $this->enable_edit_item ) {1153 if ( $this->enable_edit_item && $bp->is_item_admin ) { 1154 1154 add_action( 'groups_admin_tabs', create_function( '$current, $group_slug', 'if ( "' . esc_attr( $this->slug ) . '" == $current ) $selected = " class=\"current\""; echo "<li{$selected}><a href=\"' . $bp->root_domain . '/' . $bp->groups->slug . '/{$group_slug}/admin/' . esc_attr( $this->slug ) . '\">' . esc_attr( $this->name ) . '</a></li>";' ), 10, 2 ); 1155 1156 // Make sure user has access1157 if ( !$bp->is_item_admin )1158 return false;1159 1155 1160 1156 // Catch the edit screen and forward it to the plugin template
Note: See TracChangeset
for help on using the changeset viewer.