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/post/getPages.php

    r46586 r47122  
    421421        );
    422422
    423         $pages              = get_pages(); // Defaults: hierarchical = true, parent = -1
     423        $pages              = get_pages(); // Defaults: hierarchical = true, parent = -1.
    424424        $pages_default_args = get_pages(
    425425            array(
     
    465465        );
    466466
    467         $pages        = get_pages(); // Defaults: hierarchical = true, child_of = '', parent = -1
     467        $pages        = get_pages(); // Defaults: hierarchical = true, child_of = '', parent = -1.
    468468        $default_args = get_pages(
    469469            array(
     
    511511        );
    512512
    513         $pages = get_pages( array( 'hierarchical' => false ) ); // child_of = '', parent = -1
     513        $pages = get_pages( array( 'hierarchical' => false ) ); // child_of = '', parent = -1.
    514514
    515515        /*
     
    714714        $num_queries = $wpdb->num_queries;
    715715
    716         $pages = get_pages(); // Database gets queried
     716        $pages = get_pages(); // Database gets queried.
    717717
    718718        $this->assertEquals( $num_queries + 1, $wpdb->num_queries );
     
    720720        $num_queries = $wpdb->num_queries;
    721721
    722         $pages = get_pages(); // Database should not get queried
     722        $pages = get_pages(); // Database should not get queried.
    723723
    724724        $this->assertEquals( $num_queries, $wpdb->num_queries );
Note: See TracChangeset for help on using the changeset viewer.