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

    r46586 r47122  
    6767        remove_meta_box( 'testbox1', $current_screen, 'advanced' );
    6868
    69         // Check that it was removed properly (The meta box should be set to false once that it has been removed)
     69        // Check that it was removed properly (the meta box should be set to false once that it has been removed).
    7070        $this->assertFalse( $wp_meta_boxes[ $current_screen ]['advanced']['default']['testbox1'] );
    7171    }
     
    7777        global $wp_meta_boxes;
    7878
    79         // Add a meta box to three different post types
     79        // Add a meta box to three different post types.
    8080        add_meta_box( 'testbox1', 'Test Metabox', '__return_false', array( 'post', 'comment', 'attachment' ) );
    8181
     
    9797        remove_meta_box( 'testbox1', 'post', 'advanced' );
    9898
    99         // Check that we have removed the meta boxes only from posts
     99        // Check that we have removed the meta boxes only from posts.
    100100        $this->assertFalse( $wp_meta_boxes['post']['advanced']['default']['testbox1'] );
    101101        $this->assertArrayHasKey( 'testbox1', $wp_meta_boxes['comment']['advanced']['default'] );
Note: See TracChangeset for help on using the changeset viewer.