Changeset 8136 for trunk/bp-members/bp-members-admin.php
- Timestamp:
- 03/15/2014 10:54:27 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-admin.php
r8122 r8136 203 203 204 204 foreach ( $hooks as $key => $hook ) { 205 add_action( "admin_head-$hook", array( $this, 'modify_admin_menu_highlight' ) );206 205 add_action( "load-$hook", array( $this, $key . '_admin_load' ) ); 207 206 } 208 207 209 } 210 211 /** 212 * Highlight the Users menu if on Edit Profile or Signups pages. 208 add_action( "admin_head-$this->user_page", array( $this, 'modify_admin_menu_highlight' ) ); 209 210 } 211 212 /** 213 * Highlight the Users menu if on Edit Profile. 213 214 * 214 215 * @access public … … 219 220 220 221 // Only Show the All users menu 221 if ( in_array( $plugin_page, array( 'bp-profile-edit', 'bp-signups' ) )) {222 if ( $plugin_page = 'bp-profile-edit' ) { 222 223 $submenu_file = 'users.php'; 223 224 } … … 225 226 226 227 /** 227 * Remove the Edit Profile & Signups submenupage.228 * Remove the Edit Profile page. 228 229 * 229 230 * We add these pages in order to integrate with WP's Users panel, but 230 * we want them to show up as Viewsof the WP panel, not as separate231 * we want them to show up as a row action of the WP panel, not as separate 231 232 * subnav items under the Users menu. 232 233 * … … 237 238 // Remove submenu to force using Profile Navigation 238 239 remove_submenu_page( 'users.php', 'bp-profile-edit' ); 239 240 // Remove submenu to force using users views241 remove_submenu_page( 'users.php', 'bp-signups' );242 240 } 243 241 … … 808 806 } 809 807 810 $views['registered'] = '<a href="' . add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php' ) ) . '"' . $class . '>' . sprintf( _ nx( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>', $signups, 'signup users', 'buddypress' ), number_format_i18n( $signups ) ) . '</a>';808 $views['registered'] = '<a href="' . add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php' ) ) . '"' . $class . '>' . sprintf( _x( 'Pending <span class="count">(%s)</span>', 'signup users', 'buddypress' ), number_format_i18n( $signups ) ) . '</a>'; 811 809 812 810 return $views;
Note: See TracChangeset
for help on using the changeset viewer.