X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/699231ae09f7057a4d0000cdf32e50a3df6a04ca..6c8f14c09105d0afa4c1574215c59b5021040e76:/wp-admin/users.php
diff --git a/wp-admin/users.php b/wp-admin/users.php
index aeaabc3b..6ea17657 100644
--- a/wp-admin/users.php
+++ b/wp-admin/users.php
@@ -7,37 +7,62 @@
*/
/** WordPress Administration Bootstrap */
-require_once('./admin.php');
+require_once( './admin.php' );
-/** WordPress Registration API */
-require_once( ABSPATH . WPINC . '/registration.php');
-
-if ( !current_user_can('list_users') )
- wp_die(__('Cheatin’ uh?'));
+if ( ! current_user_can( 'list_users' ) )
+ wp_die( __( 'Cheatin’ uh?' ) );
+$wp_list_table = _get_list_table('WP_Users_List_Table');
+$pagenum = $wp_list_table->get_pagenum();
$title = __('Users');
$parent_file = 'users.php';
+add_screen_option( 'per_page', array('label' => _x( 'Users', 'users per page (screen options)' )) );
+
// contextual help - choose Help on the top right of admin panel to preview this.
-add_contextual_help($current_screen,
- '
' . __('This screen lists all the existing users for your site. Each user has one of five defined roles as set by the site admin: Site Administrator, Editor, Author, Contributor, or Subscriber. Users with roles other than Administrator will see fewer options when they are logged in, based on their role.') . '
' .
- '
' . __('You can customize the display of information on this screen as you can on other screens, by using the Screen Options tab and the on-screen filters.') . '
' .
- '
' . __('To add a new user for your site, click the Add New button at the top of the screen or Add New in the Users menu section.') . '
' . __('This screen lists all the existing users for your site. Each user has one of five defined roles as set by the site admin: Site Administrator, Editor, Author, Contributor, or Subscriber. Users with roles other than Administrator will see fewer options in the dashboard navigation when they are logged in, based on their role.') . '
' .
+ '
' . __('To add a new user for your site, click the Add New button at the top of the screen or Add New in the Users menu section.') . '
' . __('You can customize the display of this screen in a number of ways:') . '
' .
+ '
' .
+ '
' . __('You can hide/display columns based on your needs and decide how many users to list per screen using the Screen Options tab.') . '
' .
+ '
' . __('You can filter the list of users by User Role using the text links in the upper left to show All, Administrator, Editor, Author, Contributor, or Subscriber. The default view is to show all users. Unused User Roles are not listed.') . '
' .
+ '
' . __('You can view all posts made by a user by clicking on the number under the Posts column.') . '
' .
+ '
'
+) );
+
+$help = '
' . __('Hovering over a row in the users list will display action links that allow you to manage users. You can perform the following actions:') . '
' .
+ '
' .
+ '
' . __('Edit takes you to the editable profile screen for that user. You can also reach that screen by clicking on the username.') . '
';
+
+if ( is_multisite() )
+ $help .= '
' . __( 'Remove allows you to remove a user from your site. It does not delete their posts. You can also remove multiple users at once by using Bulk Actions.' ) . '
';
+else
+ $help .= '
' . __( 'Delete brings you to the Delete Users screen for confirmation, where you can permanently remove a user from your site and delete their posts. You can also delete multiple users at once by using Bulk Actions.' ) . '
\n";
+ $go_delete++;
}
}
- // @todo Delete is always for !is_multisite(). Use API.
- if ( !is_multisite() ) {
- $all_logins = $wpdb->get_results("SELECT ID, user_login FROM $wpdb->users ORDER BY user_login");
- } else {
- // WPMU only searches users of current blog
- $all_logins = $wpdb->get_results("SELECT ID, user_login FROM $wpdb->users, $wpdb->usermeta WHERE $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '".$wpdb->prefix."capabilities' ORDER BY user_login");
- }
- $user_dropdown = '';
?>