Skip to content

Commit 6ac6187

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@61721 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9424da5 commit 6ac6187

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/theme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3095,7 +3095,7 @@ function _remove_theme_support( $feature ) {
30953095
return false;
30963096
}
30973097
add_theme_support( 'custom-header', array( 'uploads' => false ) );
3098-
return; // Do not continue - custom-header-uploads no longer exists.
3098+
return true; // Do not continue - custom-header-uploads no longer exists.
30993099
}
31003100

31013101
if ( ! isset( $_wp_theme_features[ $feature ] ) ) {

0 commit comments

Comments
 (0)