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

    r47018 r47122  
    500500        }
    501501
    502         // Perform an assertion, but only if there are expected or unexpected deprecated calls or wrongdoings
     502        // Perform an assertion, but only if there are expected or unexpected deprecated calls or wrongdoings.
    503503        if ( ! empty( $this->expected_deprecated ) ||
    504504            ! empty( $this->expected_doing_it_wrong ) ||
     
    728728     */
    729729    public function go_to( $url ) {
    730         // note: the WP and WP_Query classes like to silently fetch parameters
    731         // from all over the place (globals, GET, etc), which makes it tricky
    732         // to run them more than once without very carefully clearing everything
     730        /*
     731         * Note: the WP and WP_Query classes like to silently fetch parameters
     732         * from all over the place (globals, GET, etc), which makes it tricky
     733         * to run them more than once without very carefully clearing everything.
     734         */
    733735        $_GET  = array();
    734736        $_POST = array();
     
    743745            if ( isset( $parts['query'] ) ) {
    744746                $req .= '?' . $parts['query'];
    745                 // parse the url query vars into $_GET
     747                // Parse the URL query vars into $_GET.
    746748                parse_str( $parts['query'], $_GET );
    747749            }
     
    778780     * This is a custom extension of the PHPUnit requirements handling.
    779781     *
    780      * Contains legacy code for skipping tests that are associated with an open Trac ticket. Core tests no longer
    781      * support this behaviour.
     782     * Contains legacy code for skipping tests that are associated with an open Trac ticket.
     783     * Core tests no longer support this behaviour.
    782784     *
    783785     * @since 3.5.0
     
    806808        }
    807809
    808         // Core tests no longer check against open Trac tickets, but others using WP_UnitTestCase may do so.
     810        // Core tests no longer check against open Trac tickets,
     811        // but others using WP_UnitTestCase may do so.
    809812        if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) {
    810813            return;
Note: See TracChangeset for help on using the changeset viewer.