Changeset 10322 for trunk/src/bp-members/admin/bp-members-admin-classes.php
- Timestamp:
- 11/02/2015 01:58:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/admin/bp-members-admin-classes.php
r10248 r10322 1 1 <?php 2 2 /** 3 * BuddyPress Members List Classes 3 * BuddyPress Members List Classes. 4 4 * 5 5 * @package BuddyPress … … 89 89 * @since 2.0.0 90 90 * 91 * @uses WP_Users_List_Table::get_views() to get the users views 91 * @uses WP_Users_List_Table::get_views() to get the users views. 92 92 */ 93 93 public function get_views() { 94 94 $views = parent::get_views(); 95 95 96 // Remove the 'current' class from the 'All' link 96 // Remove the 'current' class from the 'All' link. 97 97 $views['all'] = str_replace( 'class="current"', '', $views['all'] ); 98 98 $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>' ) ); … … 109 109 * @since 2.0.0 110 110 * 111 * @param array $which 111 * @param array $which Current table nav item. 112 112 */ 113 113 public function extra_tablenav( $which ) { … … 172 172 $link = false; 173 173 174 // Specific case when BuddyPress is not network activated 174 // Specific case when BuddyPress is not network activated. 175 175 if ( is_multisite() && current_user_can( 'manage_network_users') ) { 176 176 $link = sprintf( '<a href="%1$s">%2$s</a>', esc_url( network_admin_url( 'settings.php' ) ), esc_html__( 'Edit settings', 'buddypress' ) ); … … 206 206 foreach ( $this->items as $userid => $signup_object ) { 207 207 208 // Avoid a notice error appearing since 4.3.0 208 // Avoid a notice error appearing since 4.3.0. 209 209 if ( isset( $signup_object->id ) ) { 210 210 $signup_object->ID = $signup_object->id; … … 227 227 * @param string $role Role to be assigned to user. 228 228 * @param int $numposts Numper of posts. 229 * 230 * @return string 229 * @return void 231 230 */ 232 231 public function single_row( $signup_object = null, $style = '', $role = '', $numposts = 0 ) { … … 260 259 $avatar = get_avatar( $signup_object->user_email, 32 ); 261 260 262 // Activation email link 261 // Activation email link. 263 262 $email_link = add_query_arg( 264 263 array( … … 270 269 ); 271 270 272 // Activate link 271 // Activate link. 273 272 $activate_link = add_query_arg( 274 273 array( … … 280 279 ); 281 280 282 // Delete link 281 // Delete link. 283 282 $delete_link = add_query_arg( 284 283 array( … … 364 363 * 365 364 * @param object $signup_object Signup object instance. 366 *367 * @return int368 365 */ 369 366 public function column_count_sent( $signup_object = null ) { … … 378 375 * @param object|null $signup_object The signup data object. 379 376 * @param string $column_name The column name. 380 *381 377 * @return string 382 378 */ … … 398 394 399 395 if ( class_exists( 'WP_MS_Users_List_Table' ) ) : 396 400 397 /** 401 398 * List table class for signups network admin page. … … 415 412 416 413 /** 417 * Constructor 414 * Constructor. 418 415 * 419 416 * @since 2.0.0 … … 481 478 $views = parent::get_views(); 482 479 483 // Remove the 'current' class from the 'All' link 480 // Remove the 'current' class from the 'All' link. 484 481 $views['all'] = str_replace( 'class="current"', '', $views['all'] ); 485 482 $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>' ) ); … … 574 571 foreach ( $this->items as $userid => $signup_object ) { 575 572 576 // Avoid a notice error appearing since 4.3.0 573 // Avoid a notice error appearing since 4.3.0. 577 574 if ( isset( $signup_object->id ) ) { 578 575 $signup_object->ID = $signup_object->id; … … 608 605 * @param string $column_name Current column name. 609 606 * @param string $primary Primary column name. 610 *611 607 * @return string 612 608 */ … … 639 635 $avatar = get_avatar( $signup_object->user_email, 32 ); 640 636 641 // Activation email link 637 // Activation email link. 642 638 $email_link = add_query_arg( 643 639 array( … … 649 645 ); 650 646 651 // Activate link 647 // Activate link. 652 648 $activate_link = add_query_arg( 653 649 array( … … 659 655 ); 660 656 661 // Delete link 657 // Delete link. 662 658 $delete_link = add_query_arg( 663 659 array( … … 764 760 * @param object|null $signup_object The signup data object. 765 761 * @param string $column_name The column name. 766 *767 762 * @return string 768 763 */
Note: See TracChangeset
for help on using the changeset viewer.