mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user