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
+2 -2
View File
@@ -78,7 +78,7 @@ class Tests_Theme_Support extends WP_UnitTestCase {
// array of arguments, with the key of 'types' holding the post types.
add_theme_support( 'post-thumbnails', array( 'types' => true ) );
$this->assertTrue( current_theme_supports( 'post-thumbnails' ) );
$this->assertTrue( current_theme_supports( 'post-thumbnails', rand_str() ) ); // any type
$this->assertTrue( current_theme_supports( 'post-thumbnails', rand_str() ) ); // Any type.
remove_theme_support( 'post-thumbnails' );
$this->assertFalse( current_theme_supports( 'post-thumbnails' ) );
}
@@ -167,7 +167,7 @@ class Tests_Theme_Support extends WP_UnitTestCase {
* @ticket 26900
*/
function test_supports_menus() {
// Start fresh
// Start fresh.
foreach ( get_registered_nav_menus() as $location => $desc ) {
unregister_nav_menu( $location );
}