Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r46594 r47122  
    5959    }
    6060
    61     // Adding an existing user to this blog
     61    // Adding an existing user to this blog.
    6262    $new_user_email = $user_details->user_email;
    6363    $redirect       = 'user-new.php';
     
    175175        }
    176176    } else {
    177         // Adding a new user to this site
     177        // Adding a new user to this site.
    178178        $new_user_email = wp_unslash( $_REQUEST['email'] );
    179179        $user_details   = wpmu_validate_user_signup( $_REQUEST['user_login'], $new_user_email );
     
    184184            $new_user_login = apply_filters( 'pre_user_login', sanitize_user( wp_unslash( $_REQUEST['user_login'] ), true ) );
    185185            if ( isset( $_POST['noconfirmation'] ) && current_user_can( 'manage_network_users' ) ) {
    186                 add_filter( 'wpmu_signup_user_notification', '__return_false' ); // Disable confirmation email
    187                 add_filter( 'wpmu_welcome_user_notification', '__return_false' ); // Disable welcome email
     186                add_filter( 'wpmu_signup_user_notification', '__return_false' );  // Disable confirmation email.
     187                add_filter( 'wpmu_welcome_user_notification', '__return_false' ); // Disable welcome email.
    188188            }
    189189            wpmu_signup_user(
     
    447447</form>
    448448    <?php
    449 } // is_multisite()
     449} // End if is_multisite().
    450450
    451451if ( current_user_can( 'create_users' ) ) {
     
    548548        </td>
    549549    </tr>
    550 <?php } // !is_multisite ?>
     550<?php } // End if ! is_multisite(). ?>
    551551    <tr class="form-field">
    552552        <th scope="row"><label for="role"><?php _e( 'Role' ); ?></label></th>
     
    580580
    581581</form>
    582 <?php } // current_user_can('create_users') ?>
     582<?php } // End if current_user_can( 'create_users' ). ?>
    583583</div>
    584584<?php
Note: See TracChangeset for help on using the changeset viewer.