Changeset 10547
- Timestamp:
- 02/07/2016 05:19:05 PM (9 years ago)
- Location:
- trunk/src/bp-members/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-list-table.php
r10521 r10547 38 38 'plural' => 'signups', 39 39 'singular' => 'signup', 40 'screen' => buddypress()->members->admin->users_screen, 40 41 ) ); 41 42 } … … 91 92 */ 92 93 public function get_views() { 93 $views = parent::get_views(); 94 95 // Remove the 'current' class from the 'All' link. 96 $views['all'] = str_replace( 'class="current"', '', $views['all'] ); 97 $views['registered'] = sprintf( '<a href="%1$s" class="current">%2$s</a>', esc_url( add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php' ) ) ), sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $this->signup_counts ) . ')</span>' ) ); 98 99 return $views; 94 return parent::get_views(); 100 95 } 101 96 -
trunk/src/bp-members/classes/class-bp-members-ms-list-table.php
r10521 r10547 38 38 'plural' => 'signups', 39 39 'singular' => 'signup', 40 'screen' => buddypress()->members->admin->users_screen, 40 41 ) ); 41 42 } … … 92 93 */ 93 94 public function get_views() { 94 $views = parent::get_views(); 95 96 // Remove the 'current' class from the 'All' link. 97 $views['all'] = str_replace( 'class="current"', '', $views['all'] ); 98 $views['registered'] = sprintf( '<a href="%1$s" class="current">%2$s</a>', esc_url( add_query_arg( 'page', 'bp-signups', network_admin_url( 'users.php' ) ) ), sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $this->signup_counts ) . ')</span>' ) ); 99 100 return $views; 95 return parent::get_views(); 101 96 } 102 97
Note: See TracChangeset
for help on using the changeset viewer.