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/admin/includesScreen.php

    r46586 r47122  
    246246    function test_post_type_with_special_suffix_as_hookname() {
    247247        register_post_type( 'value-add' );
    248         $screen = convert_to_screen( 'value-add' ); // the -add part is key.
     248        $screen = convert_to_screen( 'value-add' ); // The '-add' part is key.
    249249        $this->assertEquals( $screen->post_type, 'value-add' );
    250250        $this->assertEquals( $screen->base, 'post' );
     
    252252        $this->assertFalse( $screen->is_block_editor ); // Post types do not support `show_in_rest` by default.
    253253
    254         $screen = convert_to_screen( 'edit-value-add' ); // the -add part is key.
     254        $screen = convert_to_screen( 'edit-value-add' ); // The '-add' part is key.
    255255        $this->assertEquals( $screen->post_type, 'value-add' );
    256256        $this->assertEquals( $screen->base, 'edit' );
     
    261261    function test_taxonomy_with_special_suffix_as_hookname() {
    262262        register_taxonomy( 'old-or-new', 'post' );
    263         $screen = convert_to_screen( 'edit-old-or-new' ); // the -new part is key.
     263        $screen = convert_to_screen( 'edit-old-or-new' ); // The '-new' part is key.
    264264        $this->assertEquals( $screen->taxonomy, 'old-or-new' );
    265265        $this->assertEquals( $screen->base, 'edit-tags' );
     
    370370            'content'  => 'some content',
    371371            'callback' => false,
    372             // Don't include a priority
     372            // Don't include a priority.
    373373        );
    374374
    375375        $screen = get_current_screen();
    376376
    377         // add help tabs.
     377        // Add help tabs.
    378378
    379379        $screen->add_help_tab( $tab_1_args );
     
    387387
    388388        $screen->add_help_tab( $tab_4_args );
    389         // Priority is added with the default for future calls
     389        // Priority is added with the default for future calls.
    390390        $tab_4_args['priority'] = 10;
    391391        $this->assertEquals( $screen->get_help_tab( $tab_4 ), $tab_4_args );
Note: See TracChangeset for help on using the changeset viewer.