Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (4 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/tests/phpunit/wp-mail-real-test.php

    r46586 r47122  
    66 */
    77
    8 // parse options
     8// Parse options.
    99$options = 'v:r:d';
    1010if ( is_callable( 'getopt' ) ) {
     
    2828}
    2929
    30 // make sure all useful errors are displayed during setup
     30// Make sure all useful errors are displayed during setup.
    3131error_reporting( E_ALL & ~E_DEPRECATED );
    3232ini_set( 'display_errors', true );
     
    3434require_once( DIR_TESTROOT . '/wp-testlib/utils.php' );
    3535
    36 // configure wp
     36// Configure WP.
    3737require_once( DIR_TESTROOT . '/wp-config.php' );
    3838define( 'ABSPATH', realpath( DIR_WP ) . '/' );
    3939
    40 // install wp
     40// Install WP.
    4141define( 'WP_BLOG_TITLE', rand_str() );
    4242define( 'WP_USER_NAME', rand_str() );
    4343define( 'WP_USER_EMAIL', rand_str() . '@example.com' );
    4444
    45 // initialize wp
     45// Initialize WP.
    4646define( 'WP_INSTALLING', 1 );
    47 $_SERVER['PATH_INFO'] = $_SERVER['SCRIPT_NAME']; // prevent a warning from some sloppy code in wp-settings.php
     47$_SERVER['PATH_INFO'] = $_SERVER['SCRIPT_NAME']; // Prevent a warning from some sloppy code in wp-settings.php.
    4848require_once( ABSPATH . 'wp-settings.php' );
    4949
     
    5353wp_install( WP_BLOG_TITLE, WP_USER_NAME, WP_USER_EMAIL, true );
    5454
    55 // make sure we're installed
     55// Make sure we're installed.
    5656assert( true === is_blog_installed() );
    5757
     
    6060$original_wpdb = $GLOBALS['wpdb'];
    6161
    62 // hide warnings during testing, since that's the normal WP behaviour
     62// Hide warnings during testing, since that's the normal WP behaviour.
    6363if ( ! WP_DEBUG ) {
    6464    error_reporting( E_ALL ^ E_NOTICE );
Note: See TracChangeset for help on using the changeset viewer.