Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 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/types.php

    r46586 r47122  
    3333                $this->assertEquals( 'foo', $pobj->name );
    3434
    35                 // Test some defaults
     35                // Test some defaults.
    3636                $this->assertFalse( is_post_type_hierarchical( 'foo' ) );
    3737                $this->assertEquals( array(), get_object_taxonomies( 'foo' ) );
     
    4646         */
    4747        function test_register_post_type_with_too_long_name() {
    48                 // post type too long
     48                // Post type too long.
    4949                $this->assertInstanceOf( 'WP_Error', register_post_type( 'abcdefghijklmnopqrstuvwxyz0123456789' ) );
    5050        }
     
    5656         */
    5757        function test_register_post_type_with_empty_name() {
    58                 // post type too short
     58                // Post type too short.
    5959                $this->assertInstanceOf( 'WP_Error', register_post_type( '' ) );
    6060        }
     
    334334                $this->assertNotContains( '%foo%', $wp_rewrite->rewritecode );
    335335                $this->assertNotContains( 'bar=', $wp_rewrite->queryreplace );
    336                 $this->assertSame( -- $count_before, count( $wp_rewrite->rewritereplace ) ); // Array was reduced by one value.
     336                $this->assertSame( --$count_before, count( $wp_rewrite->rewritereplace ) ); // Array was reduced by one value.
    337337        }
    338338
Note: See TracChangeset for help on using the changeset viewer.