Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r15011 r15152  
    2222add_contextual_help($current_screen,
    2323    '<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>' .
    2626    '<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>'
    3030);
    3131
     
    6767    $update = 'promote';
    6868    foreach ( $userids as $id ) {
     69        $id = (int) $id;
     70
    6971        if ( ! current_user_can('promote_user', $id) )
    7072            wp_die(__('You can&#8217;t edit that user.'));
     
    7577        }
    7678
     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&#8217; uh?'));
     82
    7783        $user = new WP_User($id);
    7884        $user->set_role($_REQUEST['new_role']);
     
    103109
    104110    foreach ( (array) $userids as $id) {
     111        $id = (int) $id;
     112
    105113        if ( ! current_user_can( 'delete_user', $id ) )
    106114            wp_die(__( 'You can&#8217;t delete that user.' ) );
Note: See TracChangeset for help on using the changeset viewer.