Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

git-svn-id: https://develop.svn.wordpress.org/trunk@47122 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-01-29 00:43:23 +00:00
parent bd2cd572aa
commit cfc3b57488
810 changed files with 9893 additions and 8384 deletions
+5 -5
View File
@@ -495,14 +495,14 @@ class Tests_Widgets extends WP_UnitTestCase {
$this->assertEmpty( $wp_registered_widgets );
wp_widgets_init();
// Note: We cannot use array_keys() here because $settings could be an ArrayIterator
// Note: We cannot use array_keys() here because $settings could be an ArrayIterator.
foreach ( $settings as $widget_number => $instance ) {
$widget_id = "search-$widget_number";
$this->assertArrayHasKey( $widget_id, $wp_registered_widgets );
}
}
// @todo test WP_Widget::display_callback()
// @todo Test WP_Widget::display_callback().
/**
* @see WP_Widget::is_preview()
@@ -523,9 +523,9 @@ class Tests_Widgets extends WP_UnitTestCase {
$this->assertTrue( $widget->is_preview() );
}
// @todo test WP_Widget::update_callback()
// @todo test WP_Widget::form_callback()
// @todo test WP_Widget::_register_one()
// @todo Test WP_Widget::update_callback().
// @todo Test WP_Widget::form_callback().
// @todo Test WP_Widget::_register_one().
/**
* @see WP_Widget::get_settings()