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-login.php

    r47086 r47122  
    4242    global $error, $interim_login, $action;
    4343
    44     // Don't index any of these forms
     44    // Don't index any of these forms.
    4545    add_action( 'login_head', 'wp_sensitive_page_meta' );
    4646
     
    269269        }
    270270    }
    271 } // End of login_header()
     271} // End of login_header().
    272272
    273273/**
     
    301301
    302302    ?>
    303     </div><?php // End of <div id="login"> ?>
     303    </div><?php // End of <div id="login">. ?>
    304304
    305305    <?php
     
    508508header( 'Content-Type: ' . get_bloginfo( 'html_type' ) . '; charset=' . get_bloginfo( 'charset' ) );
    509509
    510 if ( defined( 'RELOCATE' ) && RELOCATE ) { // Move flag is set
     510if ( defined( 'RELOCATE' ) && RELOCATE ) { // Move flag is set.
    511511    if ( isset( $_SERVER['PATH_INFO'] ) && ( $_SERVER['PATH_INFO'] !== $_SERVER['PHP_SELF'] ) ) {
    512512        $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] );
     
    520520}
    521521
    522 //Set a cookie now to see if they are supported by the browser.
     522// Set a cookie now to see if they are supported by the browser.
    523523$secure = ( 'https' === parse_url( wp_login_url(), PHP_URL_SCHEME ) );
    524524setcookie( TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN, $secure );
     
    561561
    562562    case 'confirm_admin_email':
    563         // Note that `is_user_logged_in()` will return false immediately after logging in
    564         // as the current user is not set, see wp-includes/pluggable.php.
    565         // However this action runs on a redirect after logging in.
     563        /*
     564         * Note that `is_user_logged_in()` will return false immediately after logging in
     565         * as the current user is not set, see wp-includes/pluggable.php.
     566         * However this action runs on a redirect after logging in.
     567         */
    566568        if ( ! is_user_logged_in() ) {
    567569            wp_safe_redirect( wp_login_url() );
     
    12111213                );
    12121214            } elseif ( isset( $_POST['testcookie'] ) && empty( $_COOKIE[ TEST_COOKIE ] ) ) {
    1213                 // If cookies are disabled we can't log in even with a valid user+pass
     1215                // If cookies are disabled, we can't log in even with a valid user and password.
    12141216                $user = new WP_Error(
    12151217                    'test_cookie',
Note: See TracChangeset for help on using the changeset viewer.