From 8d3062e46b2cbb96a09547d7a72fd83fb873be78 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 23 Feb 2026 22:40:45 +0000 Subject: [PATCH] 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 --- wp-includes/theme.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 44343569a6..db93c577d8 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -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 ] ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 044ca6794e..753b73b8ad 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.