From 06b267ee3dfae4c72e2f69c59d8a219e121ab778 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 11 Oct 2020 02:35:32 +0000 Subject: [PATCH] Docs: Correct comments in `test_wp_add_dashboard_widget()` per the documentation standards. See #42791. git-svn-id: https://develop.svn.wordpress.org/trunk@49124 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/admin/includesTemplate.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/tests/admin/includesTemplate.php b/tests/phpunit/tests/admin/includesTemplate.php index bb2ba4070d..6cb6cda3d4 100644 --- a/tests/phpunit/tests/admin/includesTemplate.php +++ b/tests/phpunit/tests/admin/includesTemplate.php @@ -213,26 +213,26 @@ class Tests_Admin_includesTemplate extends WP_UnitTestCase { require_once ABSPATH . 'wp-admin/includes/dashboard.php'; } - // Some hardcoded defaults for core widgets + // Some hardcoded defaults for core widgets. wp_add_dashboard_widget( 'dashboard_quick_press', 'Quick', '__return_false' ); wp_add_dashboard_widget( 'dashboard_browser_nag', 'Nag', '__return_false' ); $this->assertArrayHasKey( 'dashboard_quick_press', $wp_meta_boxes['dashboard']['side']['core'] ); $this->assertArrayHasKey( 'dashboard_browser_nag', $wp_meta_boxes['dashboard']['normal']['high'] ); - // Location and priority defaults + // Location and priority defaults. wp_add_dashboard_widget( 'dashboard1', 'Widget 1', '__return_false', null, null, 'foo' ); wp_add_dashboard_widget( 'dashboard2', 'Widget 2', '__return_false', null, null, null, 'bar' ); $this->assertArrayHasKey( 'dashboard1', $wp_meta_boxes['dashboard']['foo']['core'] ); $this->assertArrayHasKey( 'dashboard2', $wp_meta_boxes['dashboard']['normal']['bar'] ); - // Cleanup + // Cleanup. remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); remove_meta_box( 'dashboard_browser_nag', 'dashboard', 'normal' ); remove_meta_box( 'dashboard1', 'dashboard', 'foo' ); - // This doesn't actually get removed due to the invalid priority + // This doesn't actually get removed due to the invalid priority. remove_meta_box( 'dashboard2', 'dashboard', 'normal' ); set_current_screen( 'front' );