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/tests/phpunit/tests/rest-api/rest-server.php

    r46586 r47122  
    1414        parent::setUp();
    1515
    16         // Reset REST server to ensure only our routes are registered
     16        // Reset REST server to ensure only our routes are registered.
    1717        $GLOBALS['wp_rest_server'] = null;
    1818        add_filter( 'wp_rest_server_class', array( $this, 'filter_wp_rest_server_class' ) );
     
    2222
    2323    public function tearDown() {
    24         // Remove our temporary spy server
     24        // Remove our temporary spy server.
    2525        $GLOBALS['wp_rest_server'] = null;
    2626        unset( $_REQUEST['_wpnonce'] );
     
    910910        }
    911911
    912         // Last-Modified should be unset as per #WP23021
     912        // Last-Modified should be unset as per #WP23021.
    913913        $this->assertFalse( isset( $headers['Last-Modified'] ), 'Last-Modified should not be sent.' );
    914914    }
     
    963963        );
    964964
    965         // WordPress internally will slash the superglobals on bootstrap
     965        // WordPress internally will slash the superglobals on bootstrap.
    966966        $_GET = wp_slash(
    967967            array(
     
    991991        );
    992992
    993         // WordPress internally will slash the superglobals on bootstrap
     993        // WordPress internally will slash the superglobals on bootstrap.
    994994        $_POST = wp_slash(
    995995            array(
     
    10481048        );
    10491049
    1050         // WordPress internally will slash the superglobals on bootstrap
     1050        // WordPress internally will slash the superglobals on bootstrap.
    10511051        $_FILES = array(
    10521052            'data' => array(
     
    10761076        );
    10771077
    1078         // WordPress internally will slash the superglobals on bootstrap
     1078        // WordPress internally will slash the superglobals on bootstrap.
    10791079        $_SERVER['HTTP_X_MY_HEADER'] = wp_slash( 'data\\with\\slashes' );
    10801080
Note: See TracChangeset for help on using the changeset viewer.