Changeset 3143 for branches/1.2/bp-groups/bp-groups-classes.php
- Timestamp:
- 07/22/2010 10:51:24 AM (15 years ago)
- File:
-
- 1 edited
-
branches/1.2/bp-groups/bp-groups-classes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-groups/bp-groups-classes.php
r3142 r3143 1137 1137 /* Construct the admin edit tab for the new group extension */ 1138 1138 if ( $this->enable_edit_item ) { 1139 add_action( 'groups_admin_tabs', create_function( '$current, $group_slug', 'if ( "' . attribute_escape( $this->slug ) . '" == $current ) $selected = " class=\"current\""; echo "<li{$selected}><a href=\"' . $bp->root_domain . '/' . $bp->groups->slug . '/{$group_slug}/admin/' . attribute_escape( $this->slug ) . '\">' . attribute_escape( $this->name ) . '</a></li>";' ), 10, 2 );1139 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 ); 1140 1140 1141 1141 /* Catch the edit screen and forward it to the plugin template */ … … 1162 1162 /* When we are viewing the extension display page, set the title and options title */ 1163 1163 if ( $bp->current_component == $bp->groups->slug && $bp->is_single_item && $bp->current_action == $this->slug ) { 1164 add_action( 'bp_template_content_header', create_function( '', 'echo "' . attribute_escape( $this->name ) . '";' ) );1165 add_action( 'bp_template_title', create_function( '', 'echo "' . attribute_escape( $this->name ) . '";' ) );1164 add_action( 'bp_template_content_header', create_function( '', 'echo "' . esc_attr( $this->name ) . '";' ) ); 1165 add_action( 'bp_template_title', create_function( '', 'echo "' . esc_attr( $this->name ) . '";' ) ); 1166 1166 } 1167 1167 }
Note: See TracChangeset
for help on using the changeset viewer.