Changes in trunk/wp-admin/users.php [15011:15152]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/users.php
r15011 r15152 22 22 add_contextual_help($current_screen, 23 23 '<p>' . __('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.') . '</p>' . 24 '<p>' . __('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.') . '</p>' . 25 '<p>' . __('To add a new user for your site, click the Add New button at the top of the screen or Add New in the Appearance menu section.') . '</p>' .24 '<p>' . __('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.') . '</p>' . 25 '<p>' . __('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.') . '</p>' . 26 26 '<p><strong>' . __('For more information:') . '</strong></p>' . 27 '<p>' . __('<a target="_blank" href=http://codex.wordpress.org/Users_Authors_and_Users_SubPanel">Documentation on Authors and Users</a>') . '</p>' .28 '<p>' . __('<a target="_blank" href="http://codex.wordpress.org/Roles_and_Capabilities">Roles and Capabilities Descriptions</a>') . '</p>' .29 '<p>' . __('<a target="_blank" href="http://wordpress.org/support/">Support Forums</a>') . '</p>'27 '<p>' . __('<a href="http://codex.wordpress.org/Users_Authors_and_Users_SubPanel" target="_blank">Documentation on Authors and Users</a>') . '</p>' . 28 '<p>' . __('<a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">Roles and Capabilities Descriptions</a>') . '</p>' . 29 '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 30 30 ); 31 31 … … 67 67 $update = 'promote'; 68 68 foreach ( $userids as $id ) { 69 $id = (int) $id; 70 69 71 if ( ! current_user_can('promote_user', $id) ) 70 72 wp_die(__('You can’t edit that user.')); … … 75 77 } 76 78 79 // If the user doesn't already belong to the blog, bail. 80 if ( is_multisite() && !is_user_member_of_blog( $id ) ) 81 wp_die(__('Cheatin’ uh?')); 82 77 83 $user = new WP_User($id); 78 84 $user->set_role($_REQUEST['new_role']); … … 103 109 104 110 foreach ( (array) $userids as $id) { 111 $id = (int) $id; 112 105 113 if ( ! current_user_can( 'delete_user', $id ) ) 106 114 wp_die(__( 'You can’t delete that user.' ) );
Note: See TracChangeset
for help on using the changeset viewer.