Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (7 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/install.php

    r45932 r47122  
    7878
    7979        <?php
    80 } // end display_header()
     80} // End display_header().
    8181
    8282/**
     
    9595        $user_table = ( $wpdb->get_var( $sql ) != null );
    9696
    97         // Ensure that Blogs appear in search engines by default.
     97        // Ensure that sites appear in search engines by default.
    9898        $blog_public = 1;
    9999        if ( isset( $_POST['weblog_title'] ) ) {
     
    210210</form>
    211211        <?php
    212 } // end display_setup_form()
     212} // End display_setup_form().
    213213
    214214// Let's check to make sure WP isn't already installed.
     
    304304
    305305switch ( $step ) {
    306         case 0: // Step 0
     306        case 0: // Step 0.
    307307                if ( wp_can_install_language_pack() && empty( $language ) ) {
    308308                        $languages = wp_get_available_translations();
     
    356356
    357357                display_header();
    358                 // Fill in the data we gathered
     358                // Fill in the data we gathered.
    359359                $weblog_title         = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : '';
    360360                $user_name            = isset( $_POST['user_name'] ) ? trim( wp_unslash( $_POST['user_name'] ) ) : '';
     
    367367                $error = false;
    368368                if ( empty( $user_name ) ) {
    369                         // TODO: poka-yoke
     369                        // TODO: Poka-yoke.
    370370                        display_setup_form( __( 'Please provide a valid username.' ) );
    371371                        $error = true;
     
    374374                        $error = true;
    375375                } elseif ( $admin_password != $admin_password_check ) {
    376                         // TODO: poka-yoke
     376                        // TODO: Poka-yoke.
    377377                        display_setup_form( __( 'Your passwords do not match. Please try again.' ) );
    378378                        $error = true;
    379379                } elseif ( empty( $admin_email ) ) {
    380                         // TODO: poka-yoke
     380                        // TODO: Poka-yoke.
    381381                        display_setup_form( __( 'You must provide an email address.' ) );
    382382                        $error = true;
    383383                } elseif ( ! is_email( $admin_email ) ) {
    384                         // TODO: poka-yoke
     384                        // TODO: Poka-yoke.
    385385                        display_setup_form( __( 'Sorry, that isn&#8217;t a valid email address. Email addresses look like <code>username@example.com</code>.' ) );
    386386                        $error = true;
Note: See TracChangeset for help on using the changeset viewer.