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:
Sergey Biryukov
2026-02-23 22:40:45 +00:00
parent b4da519bd1
commit 8d3062e46b
2 changed files with 2 additions and 2 deletions

View File

@@ -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 ] ) ) {

View File

@@ -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.