Make WordPress Core


Ignore:
Timestamp:
07/17/2014 09:13:53 AM (11 years ago)
Author:
DrewAPicture
Message:

Fix syntax for single- and multi-line comments in wp-admin-directory files.

See #28931.

File:
1 edited

Legend:

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

    r28500 r29206  
    391391function default_password_nag_handler($errors = false) {
    392392    global $user_ID;
    393     if ( ! get_user_option('default_password_nag') ) //Short circuit it.
     393    // Short-circuit it.
     394    if ( ! get_user_option('default_password_nag') )
    394395        return;
    395396
    396     //get_user_setting = JS saved UI setting. else no-js-fallback code.
     397    // get_user_setting = JS saved UI setting. else no-js-fallback code.
    397398    if ( 'hide' == get_user_setting('default_password_nag') || isset($_GET['default_password_nag']) && '0' == $_GET['default_password_nag'] ) {
    398399        delete_user_setting('default_password_nag');
     
    402403
    403404add_action('profile_update', 'default_password_nag_edit_user', 10, 2);
     405
    404406/**
    405407 * @since 2.8.0
    406408 */
    407409function default_password_nag_edit_user($user_ID, $old_data) {
    408     if ( ! get_user_option('default_password_nag', $user_ID) ) //Short circuit it.
     410    // Short-circuit it.
     411    if ( ! get_user_option('default_password_nag', $user_ID) )
    409412        return;
    410413
    411414    $new_data = get_userdata($user_ID);
    412415
    413     if ( $new_data->user_pass != $old_data->user_pass ) { //Remove the nag if the password has been changed.
     416    // Remove the nag if the password has been changed.
     417    if ( $new_data->user_pass != $old_data->user_pass ) {
    414418        delete_user_setting('default_password_nag');
    415419        update_user_option($user_ID, 'default_password_nag', false, true);
     
    418422
    419423add_action('admin_notices', 'default_password_nag');
     424
    420425/**
    421426 * @since 2.8.0
     
    423428function default_password_nag() {
    424429    global $pagenow;
    425     if ( 'profile.php' == $pagenow || ! get_user_option('default_password_nag') ) //Short circuit it.
     430    // Short-circuit it.
     431    if ( 'profile.php' == $pagenow || ! get_user_option('default_password_nag') )
    426432        return;
    427433
Note: See TracChangeset for help on using the changeset viewer.