Make WordPress Core

Changeset 49124


Ignore:
Timestamp:
10/11/2020 02:35:32 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct comments in test_wp_add_dashboard_widget() per the documentation standards.

See #42791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/includesTemplate.php

    r49123 r49124  
    214214        }
    215215
    216         // Some hardcoded defaults for core widgets
     216        // Some hardcoded defaults for core widgets.
    217217        wp_add_dashboard_widget( 'dashboard_quick_press', 'Quick', '__return_false' );
    218218        wp_add_dashboard_widget( 'dashboard_browser_nag', 'Nag', '__return_false' );
     
    221221        $this->assertArrayHasKey( 'dashboard_browser_nag', $wp_meta_boxes['dashboard']['normal']['high'] );
    222222
    223         // Location and priority defaults
     223        // Location and priority defaults.
    224224        wp_add_dashboard_widget( 'dashboard1', 'Widget 1', '__return_false', null, null, 'foo' );
    225225        wp_add_dashboard_widget( 'dashboard2', 'Widget 2', '__return_false', null, null, null, 'bar' );
     
    228228        $this->assertArrayHasKey( 'dashboard2', $wp_meta_boxes['dashboard']['normal']['bar'] );
    229229
    230         // Cleanup
     230        // Cleanup.
    231231        remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );
    232232        remove_meta_box( 'dashboard_browser_nag', 'dashboard', 'normal' );
    233233        remove_meta_box( 'dashboard1', 'dashboard', 'foo' );
    234234
    235         // This doesn't actually get removed due to the invalid priority
     235        // This doesn't actually get removed due to the invalid priority.
    236236        remove_meta_box( 'dashboard2', 'dashboard', 'normal' );
    237237
Note: See TracChangeset for help on using the changeset viewer.