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/user/wpDeleteUser.php

    r46586 r47122  
    6666        );
    6767
    68         // insert a post and make sure the ID is ok
     68        // Insert a post and make sure the ID is OK.
    6969        $post_id = wp_insert_post( $post );
    7070        $this->assertTrue( is_numeric( $post_id ) );
     
    8282        );
    8383
    84         // insert a post and make sure the ID is ok
     84        // Insert a post and make sure the ID is OK.
    8585        $nav_id = wp_insert_post( $post );
    8686        $this->assertTrue( is_numeric( $nav_id ) );
     
    100100        $this->assertNotNull( get_post( $post_id ) );
    101101        $this->assertEquals( 'trash', get_post( $post_id )->post_status );
    102         // nav_menu_item is delete_with_user = false so the nav post should remain published.
     102        // 'nav_menu_item' is `delete_with_user = false` so the nav post should remain published.
    103103        $this->assertNotNull( get_post( $nav_id ) );
    104104        $this->assertEquals( 'publish', get_post( $nav_id )->post_status );
Note: See TracChangeset for help on using the changeset viewer.