Make WordPress Core


Ignore:
Timestamp:
03/04/2021 10:11:38 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Update inline comments in some test files per the documentation standards.

See #52628.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/sitemaps/functions.php

    r48937 r50491  
    102102            array( 'posts', 'page', 1, home_url( '/?sitemap=posts&sitemap-subtype=page&paged=1' ) ),
    103103            array( 'posts', 'page', 5, home_url( '/?sitemap=posts&sitemap-subtype=page&paged=5' ) ),
    104             // post_type doesn't exist.
     104            // Post type doesn't exist.
    105105            array( 'posts', 'foo', 5, false ),
    106106            array( 'taxonomies', 'category', 1, home_url( '/?sitemap=taxonomies&sitemap-subtype=category&paged=1' ) ),
    107107            array( 'taxonomies', 'post_tag', 1, home_url( '/?sitemap=taxonomies&sitemap-subtype=post_tag&paged=1' ) ),
     108            // Negative paged, gets converted to its absolute value.
    108109            array( 'taxonomies', 'post_tag', -1, home_url( '/?sitemap=taxonomies&sitemap-subtype=post_tag&paged=1' ) ),
    109             // negative paged, gets converted to it's absolute value.
    110110            array( 'users', '', 4, home_url( '/?sitemap=users&paged=4' ) ),
    111             // users provider doesn't allow subtypes.
     111            // Users provider doesn't allow subtypes.
    112112            array( 'users', 'foo', 4, false ),
    113             // provider doesn't exist.
     113            // Provider doesn't exist.
    114114            array( 'foo', '', 4, false ),
    115115        );
     
    117117
    118118    /**
    119      * Data provider for test_get_sitemap_url_pretty_permalinks
     119     * Data provider for test_get_sitemap_url_pretty_permalinks.
    120120     *
    121121     * @return array[] {
     
    134134            array( 'posts', 'page', 1, home_url( '/wp-sitemap-posts-page-1.xml' ) ),
    135135            array( 'posts', 'page', 5, home_url( '/wp-sitemap-posts-page-5.xml' ) ),
    136             // post_type doesn't exist.
     136            // Post type doesn't exist.
    137137            array( 'posts', 'foo', 5, false ),
    138138            array( 'taxonomies', 'category', 1, home_url( '/wp-sitemap-taxonomies-category-1.xml' ) ),
    139139            array( 'taxonomies', 'post_tag', 1, home_url( '/wp-sitemap-taxonomies-post_tag-1.xml' ) ),
    140             // negative paged, gets converted to it's absolute value.
     140            // Negative paged, gets converted to its absolute value.
    141141            array( 'taxonomies', 'post_tag', -1, home_url( '/wp-sitemap-taxonomies-post_tag-1.xml' ) ),
    142142            array( 'users', '', 4, home_url( '/wp-sitemap-users-4.xml' ) ),
    143             // users provider doesn't allow subtypes.
     143            // Users provider doesn't allow subtypes.
    144144            array( 'users', 'foo', 4, false ),
    145             // provider doesn't exist.
     145            // Provider doesn't exist.
    146146            array( 'foo', '', 4, false ),
    147147        );
Note: See TracChangeset for help on using the changeset viewer.