diff --git bp-members/admin/bp-members-classes.php bp-members/admin/bp-members-classes.php
index 78bb1f2..fb362ae 100644
|
|
class BP_Members_List_Table extends WP_Users_List_Table { |
159 | 159 | * @since BuddyPress (2.0.0) |
160 | 160 | */ |
161 | 161 | public function no_items() { |
162 | | _e( 'No pending accounts found.', 'buddypress' ); |
| 162 | |
| 163 | if ( bp_get_signup_allowed() ) { |
| 164 | esc_html_e( 'No pending accounts found.', 'buddypress' ); |
| 165 | } else { |
| 166 | $link = false; |
| 167 | |
| 168 | // Specific case when BuddyPress is not network activated |
| 169 | if ( is_multisite() && current_user_can( 'manage_network_users') ) { |
| 170 | $link = '<a href="' . esc_url( network_admin_url( 'settings.php' ) ) . '">' . esc_html__( 'Edit settings', 'buddypress' ) . '</a>'; |
| 171 | } elseif ( current_user_can( 'manage_options' ) ) { |
| 172 | $link = '<a href="' . esc_url( bp_get_admin_url( 'options-general.php' ) ) . '">' . esc_html__( 'Edit settings', 'buddypress' ) . '</a>'; |
| 173 | } |
| 174 | |
| 175 | printf( __( 'Registration is disabled. %s', 'buddypress' ), $link ); |
| 176 | } |
| 177 | |
163 | 178 | } |
164 | 179 | |
165 | 180 | /** |
… |
… |
class BP_Members_MS_List_Table extends WP_MS_Users_List_Table { |
462 | 477 | * @since BuddyPress (2.0.0) |
463 | 478 | */ |
464 | 479 | public function no_items() { |
465 | | _e( 'No pending accounts found.', 'buddypress' ); |
| 480 | if ( bp_get_signup_allowed() ) { |
| 481 | esc_html_e( 'No pending accounts found.', 'buddypress' ); |
| 482 | } else { |
| 483 | $link = false; |
| 484 | |
| 485 | if ( current_user_can( 'manage_network_users' ) ) { |
| 486 | $link = '<a href="' . esc_url( network_admin_url( 'settings.php' ) ) . '">' . esc_html__( 'Edit settings', 'buddypress' ) . '</a>'; |
| 487 | } |
| 488 | |
| 489 | printf( __( 'Registration is disabled. %s', 'buddypress' ), $link ); |
| 490 | } |
466 | 491 | } |
467 | 492 | |
468 | 493 | /** |