diff --git bp-members/admin/bp-members-classes.php bp-members/admin/bp-members-classes.php
index 535828d..78bb1f2 100644
|
|
class BP_Members_List_Table extends WP_Users_List_Table { |
99 | 99 | |
100 | 100 | // Remove the 'current' class from the 'All' link |
101 | 101 | $views['all'] = str_replace( 'class="current"', '', $views['all'] ); |
102 | | $views['registered'] = '<a href="' . add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php' ) ) . '" class="current">' . sprintf( _nx( 'Pending account <span class="count">(%s)</span>', 'Pending accounts <span class="count">(%s)</span>', $this->signup_counts, 'signup users', 'buddypress' ), number_format_i18n( $this->signup_counts ) ) . '</a>'; |
| 102 | $views['registered'] = '<a href="' . add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php' ) ) . '" class="current">' . sprintf( _x( 'Pending <span class="count">(%s)</span>', 'signup users', 'buddypress' ), number_format_i18n( $this->signup_counts ) ) . '</a>'; |
103 | 103 | |
104 | 104 | return $views; |
105 | 105 | } |
… |
… |
class BP_Members_MS_List_Table extends WP_MS_Users_List_Table { |
414 | 414 | $views['all'] = str_replace( 'class="current"', '', $views['all'] ); |
415 | 415 | $class = ' class="current"'; |
416 | 416 | |
417 | | $views['registered'] = '<a href="' . add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php' ) ) . '" class="current">' . sprintf( _nx( 'Pending account <span class="count">(%s)</span>', 'Pending accounts <span class="count">(%s)</span>', $this->signup_counts, 'signup users', 'buddypress' ), number_format_i18n( $this->signup_counts ) ) . '</a>'; |
| 417 | $views['registered'] = '<a href="' . add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php' ) ) . '" class="current">' . sprintf( _x( 'Pending <span class="count">(%s)</span>', 'signup users', 'buddypress' ), number_format_i18n( $this->signup_counts ) ) . '</a>'; |
418 | 418 | |
419 | 419 | return $views; |
420 | 420 | } |
diff --git bp-members/bp-members-admin.php bp-members/bp-members-admin.php
index 93d9db9..9712b15 100644
|
|
class BP_Members_Admin { |
202 | 202 | $this->screen_id = array( $edit_page, $this->user_page ); |
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 | |
| 208 | add_action( "admin_head-$this->user_page", array( $this, 'modify_admin_menu_highlight' ) ); |
| 209 | |
209 | 210 | } |
210 | 211 | |
211 | 212 | /** |
212 | | * Highlight the Users menu if on Edit Profile or Signups pages. |
| 213 | * Highlight the Users menu if on Edit Profile. |
213 | 214 | * |
214 | 215 | * @access public |
215 | 216 | * @since BuddyPress (2.0.0) |
… |
… |
class BP_Members_Admin { |
218 | 219 | global $plugin_page, $submenu_file; |
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 | } |
224 | 225 | } |
225 | 226 | |
226 | 227 | /** |
227 | | * Remove the Edit Profile & Signups submenu page. |
| 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 Views of the WP panel, not as separate |
| 231 | * 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 | * |
233 | 234 | * @access public |
… |
… |
class BP_Members_Admin { |
236 | 237 | public function admin_head() { |
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 views |
241 | | remove_submenu_page( 'users.php', 'bp-signups' ); |
242 | 240 | } |
243 | 241 | |
244 | 242 | /** Community Profile ************************************************/ |
… |
… |
class BP_Members_Admin { |
807 | 805 | $class = ' class="current"'; |
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; |
813 | 811 | } |