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/tests/canonical/customRules.php

    r46586 r47122  
    1212        global $wp_rewrite;
    1313        // Add a custom Rewrite rule to test category redirections.
    14         $wp_rewrite->add_rule( 'ccr/(.+?)/sort/(asc|desc)', 'index.php?category_name=$matches[1]&order=$matches[2]', 'top' ); // ccr = Custom_Cat_Rule
     14        $wp_rewrite->add_rule( 'ccr/(.+?)/sort/(asc|desc)', 'index.php?category_name=$matches[1]&order=$matches[2]', 'top' ); // ccr = Custom_Cat_Rule.
    1515        $wp_rewrite->flush_rules();
    1616    }
     
    2424
    2525    function data() {
    26         /* Format:
    27          * [0]: $test_url,
    28          * [1]: expected results: Any of the following can be used
     26        /*
     27         * Data format:
     28         * [0]: Test URL.
     29         * [1]: Expected results: Any of the following can be used.
    2930         *      array( 'url': expected redirection location, 'qv': expected query vars to be set via the rewrite AND $_GET );
    3031         *      array( expected query vars to be set, same as 'qv' above )
     
    3334         */
    3435        return array(
    35             // Custom Rewrite rules leading to Categories
     36            // Custom Rewrite rules leading to Categories.
    3637            array(
    3738                '/ccr/uncategorized/sort/asc/',
Note: See TracChangeset for help on using the changeset viewer.