Code Quality: Correct return statement in _remove_theme_support().
This matches the documented `bool` return type to indicate the feature support was successfully removed. Follow-up to [20212]. Props huzaifaalmesbah. See #64238. Built from https://develop.svn.wordpress.org/trunk@61721 git-svn-id: http://core.svn.wordpress.org/trunk@61029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -3095,7 +3095,7 @@ function _remove_theme_support( $feature ) {
|
||||
return false;
|
||||
}
|
||||
add_theme_support( 'custom-header', array( 'uploads' => false ) );
|
||||
return; // Do not continue - custom-header-uploads no longer exists.
|
||||
return true; // Do not continue - custom-header-uploads no longer exists.
|
||||
}
|
||||
|
||||
if ( ! isset( $_wp_theme_features[ $feature ] ) ) {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '7.0-beta1-61720';
|
||||
$wp_version = '7.0-beta1-61721';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user