Make WordPress Core


Ignore:
Timestamp:
05/28/2015 09:40:27 PM (9 years ago)
Author:
wonderboymusic
Message:

Add @global annotations for wp-admin/*.

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/user.php

    r32025 r32642  
    2929 */
    3030function edit_user( $user_id = 0 ) {
    31     global $wp_roles;
     31    $wp_roles = wp_roles();
    3232    $user = new stdClass;
    3333    if ( $user_id ) {
     
    199199 */
    200200function get_editable_roles() {
    201     global $wp_roles;
    202 
    203     $all_roles = $wp_roles->roles;
     201    $all_roles = wp_roles()->roles;
    204202
    205203    /**
     
    236234 *
    237235 * @since 2.0.0
     236 *
     237 * @global wpdb $wpdb
    238238 *
    239239 * @param int $user_id User ID.
     
    264264 *
    265265 * @since 2.0.0
     266 *
     267 * @global wpdb $wpdb
    266268 *
    267269 * @param int $id User ID.
     
    389391 * @since 2.8.0
    390392 */
     393/**
     394 *
     395 * @global int $user_ID
     396 *
     397 * @param false $errors Deprecated.
     398 */
    391399function default_password_nag_handler($errors = false) {
    392400    global $user_ID;
     
    425433/**
    426434 * @since 2.8.0
     435 *
     436 * @global string $pagenow
    427437 */
    428438function default_password_nag() {
Note: See TracChangeset for help on using the changeset viewer.