mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 15:16:59 +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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user