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/comment/dateQuery.php

    r46586 r47122  
    2121        parent::setUp();
    2222
    23         // Just some dummy posts to use as parents for comments
     23        // Just some dummy posts to use as parents for comments.
    2424        for ( $i = 1; $i <= 2; $i++ ) {
    2525            $this->posts[ $i ] = self::factory()->post->create();
     
    2727
    2828        // Be careful modifying this. Tests are coded to expect this exact sample data.
    29         // Format is 'datetime' => 'post number (not ID)'
     29        // Format is 'datetime' => 'post number (not ID)'.
    3030        $comment_dates = array(
    3131            '2007-01-22 03:49:21' => 1,
     
    3333            '2007-09-24 07:17:23' => 1,
    3434            '2008-03-29 09:04:25' => 1,
    35             '2008-07-15 11:32:26' => 2, // This one should never be in the results
     35            '2008-07-15 11:32:26' => 2, // This one should never be in the results.
    3636            '2008-12-10 13:06:27' => 1,
    3737            '2009-06-11 21:30:28' => 1,
     
    5454            array(
    5555                'post_id' => $this->posts[1],
    56                 'orderby' => 'comment_ID',  // Same order they were created
     56                'orderby' => 'comment_ID',  // Same order they were created.
    5757                'order'   => 'ASC',
    5858            )
Note: See TracChangeset for help on using the changeset viewer.