diff --git src/bp-members/admin/bp-members-admin-classes.php src/bp-members/admin/bp-members-admin-classes.php
index 2abd0d9..427f049 100644
|
|
class BP_Members_MS_List_Table extends WP_MS_Users_List_Table { |
482 | 482 | |
483 | 483 | // Remove the 'current' class from the 'All' link. |
484 | 484 | $views['all'] = str_replace( 'class="current"', '', $views['all'] ); |
485 | | $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>' ) ); |
| 485 | $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>' ) ); |
486 | 486 | |
487 | 487 | return $views; |
488 | 488 | } |
… |
… |
class BP_Members_MS_List_Table extends WP_MS_Users_List_Table { |
646 | 646 | 'signup_id' => $signup_object->id, |
647 | 647 | 'action' => 'resend', |
648 | 648 | ), |
649 | | bp_get_admin_url( 'users.php' ) |
| 649 | network_admin_url( 'users.php' ) |
650 | 650 | ); |
651 | 651 | |
652 | 652 | // Activate link. |
… |
… |
class BP_Members_MS_List_Table extends WP_MS_Users_List_Table { |
656 | 656 | 'signup_id' => $signup_object->id, |
657 | 657 | 'action' => 'activate', |
658 | 658 | ), |
659 | | bp_get_admin_url( 'users.php' ) |
| 659 | network_admin_url( 'users.php' ) |
660 | 660 | ); |
661 | 661 | |
662 | 662 | // Delete link. |
… |
… |
class BP_Members_MS_List_Table extends WP_MS_Users_List_Table { |
666 | 666 | 'signup_id' => $signup_object->id, |
667 | 667 | 'action' => 'delete', |
668 | 668 | ), |
669 | | bp_get_admin_url( 'users.php' ) |
| 669 | network_admin_url( 'users.php' ) |
670 | 670 | ); |
671 | 671 | |
672 | 672 | echo $avatar . sprintf( '<strong><a href="%1$s" class="edit" title="%2$s">%3$s</a></strong><br/>', esc_url( $activate_link ), esc_attr__( 'Activate', 'buddypress' ), $signup_object->user_login ); |
diff --git src/bp-members/bp-members-admin.php src/bp-members/bp-members-admin.php
index 6187966..418e895 100644
|
|
class BP_Members_Admin { |
202 | 202 | |
203 | 203 | // Reorganise the views navigation in users.php and signups page. |
204 | 204 | if ( current_user_can( $this->capability ) ) { |
205 | | add_filter( "views_{$this->users_screen}", array( $this, 'signup_filter_view' ), 10, 1 ); |
206 | | add_filter( 'set-screen-option', array( $this, 'signup_screen_options' ), 10, 3 ); |
| 205 | $user_screen = $this->users_screen; |
| 206 | |
| 207 | /** |
| 208 | * Users screen on multiblog is users, but signups |
| 209 | * need to be managed in the network for this case |
| 210 | */ |
| 211 | if ( bp_is_network_activated() && bp_is_multiblog_mode() && false === strpos( $user_screen, '-network' ) ) { |
| 212 | $user_screen .= '-network'; |
| 213 | } |
| 214 | |
| 215 | add_filter( "views_{$user_screen}", array( $this, 'signup_filter_view' ), 10, 1 ); |
| 216 | add_filter( 'set-screen-option', array( $this, 'signup_screen_options' ), 10, 3 ); |
207 | 217 | } |
208 | 218 | } |
209 | 219 | } |
… |
… |
class BP_Members_Admin { |
1324 | 1334 | } |
1325 | 1335 | |
1326 | 1336 | $signups = BP_Signup::count_signups(); |
1327 | | $url = add_query_arg( 'page', 'bp-signups', bp_get_admin_url( 'users.php' ) ); |
| 1337 | |
| 1338 | if ( is_network_admin() ) { |
| 1339 | $base_url = network_admin_url( 'users.php' ); |
| 1340 | } else { |
| 1341 | $base_url = bp_get_admin_url( 'users.php' ); |
| 1342 | } |
| 1343 | |
| 1344 | $url = add_query_arg( 'page', 'bp-signups', $base_url ); |
1328 | 1345 | $text = sprintf( _x( 'Pending %s', 'signup users', 'buddypress' ), '<span class="count">(' . number_format_i18n( $signups ) . ')</span>' ); |
1329 | 1346 | |
1330 | 1347 | $views['registered'] = sprintf( '<a href="%1$s" class="%2$s">%3$s</a>', esc_url( $url ), $class, $text ); |
… |
… |
class BP_Members_Admin { |
1394 | 1411 | // Prepare the display of the Community Profile screen. |
1395 | 1412 | if ( ! in_array( $doaction, $allowed_actions ) || ( -1 == $doaction ) ) { |
1396 | 1413 | |
1397 | | if ( bp_core_do_network_admin() ) { |
| 1414 | if ( is_network_admin() ) { |
1398 | 1415 | $bp_members_signup_list_table = self::get_list_table_class( 'BP_Members_MS_List_Table', 'ms-users' ); |
1399 | 1416 | } else { |
1400 | 1417 | $bp_members_signup_list_table = self::get_list_table_class( 'BP_Members_List_Table', 'users' ); |
… |
… |
class BP_Members_Admin { |
1783 | 1800 | // Prepare the group items for display. |
1784 | 1801 | $bp_members_signup_list_table->prepare_items(); |
1785 | 1802 | |
| 1803 | if ( is_network_admin() ) { |
| 1804 | $form_url = network_admin_url( 'users.php' ); |
| 1805 | } else { |
| 1806 | $form_url = bp_get_admin_url( 'users.php' ); |
| 1807 | } |
| 1808 | |
1786 | 1809 | $form_url = add_query_arg( |
1787 | 1810 | array( |
1788 | 1811 | 'page' => 'bp-signups', |
1789 | 1812 | ), |
1790 | | bp_get_admin_url( 'users.php' ) |
| 1813 | $form_url |
1791 | 1814 | ); |
1792 | 1815 | |
1793 | 1816 | $search_form_url = remove_query_arg( |
… |
… |
class BP_Members_Admin { |
1923 | 1946 | 'signup_ids' => implode( ',', $signup_ids ) |
1924 | 1947 | ); |
1925 | 1948 | |
1926 | | $cancel_url = add_query_arg( $url_args, bp_get_admin_url( 'users.php' ) ); |
| 1949 | if ( is_network_admin() ) { |
| 1950 | $base_url = network_admin_url( 'users.php' ); |
| 1951 | } else { |
| 1952 | $base_url = bp_get_admin_url( 'users.php' ); |
| 1953 | } |
| 1954 | |
| 1955 | $cancel_url = add_query_arg( $url_args, $base_url ); |
1927 | 1956 | $action_url = wp_nonce_url( |
1928 | 1957 | add_query_arg( |
1929 | 1958 | array_merge( $url_args, $action_args ), |
1930 | | bp_get_admin_url( 'users.php' ) |
| 1959 | $base_url |
1931 | 1960 | ), |
1932 | 1961 | 'signups_' . $action |
1933 | 1962 | ); |