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/includes/bootstrap.php

    r46586 r47122  
    8484$multisite = $multisite || ( defined( 'MULTISITE' ) && MULTISITE );
    8585
    86 // Override the PHPMailer
     86// Override the PHPMailer.
    8787require_once( dirname( __FILE__ ) . '/mock-mailer.php' );
    8888$phpmailer = new MockPHPMailer( true );
     
    115115
    116116$GLOBALS['_wp_die_disabled'] = false;
    117 // Allow tests to override wp_die
     117// Allow tests to override wp_die().
    118118tests_add_filter( 'wp_die_handler', '_wp_die_handler_filter' );
    119 // Use the Spy REST Server instead of default
     119// Use the Spy REST Server instead of default.
    120120tests_add_filter( 'wp_rest_server_class', '_wp_rest_server_class_filter' );
    121121
    122122// Preset WordPress options defined in bootstrap file.
    123 // Used to activate themes, plugins, as well as  other settings.
     123// Used to activate themes, plugins, as well as other settings.
    124124if ( isset( $GLOBALS['wp_tests_options'] ) ) {
    125125    function wp_tests_options( $value ) {
     
    133133}
    134134
    135 // Load WordPress
     135// Load WordPress.
    136136require_once ABSPATH . '/wp-settings.php';
    137137
    138 // Delete any default posts & related data
     138// Delete any default posts & related data.
    139139_delete_all_posts();
    140140
Note: See TracChangeset for help on using the changeset viewer.