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/rewrite.php

    r46586 r47122  
    144144        remove_filter( 'home_url', array( $this, '_filter_http_home_url' ), 10 );
    145145
    146         // Test the tests:
     146        // Test the tests.
    147147        $this->assertSame( 'http', parse_url( $permalink, PHP_URL_SCHEME ) );
    148148        $this->assertSame( 'https', parse_url( $network_home, PHP_URL_SCHEME ) );
    149149
    150         // Test that the url_to_postid() call matched:
     150        // Test that the url_to_postid() call matched.
    151151        $this->assertEquals( $post_id, $url_to_postid );
    152152    }
     
    372372        );
    373373
    374         // This url should NOT return a post ID
     374        // This url should NOT return a post ID.
    375375        $badurl = site_url( '/example-collision' );
    376376        $this->assertEquals( 0, url_to_postid( $badurl ) );
     
    393393        );
    394394
    395         // This url should NOT return a post ID
     395        // This url should NOT return a post ID.
    396396        $badurl = network_home_url( '/example-collision' );
    397397        $this->assertEquals( 0, url_to_postid( $badurl ) );
Note: See TracChangeset for help on using the changeset viewer.