mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Allow disabling of custom header uploads via remove_theme_support. props jorbin, fixes #14837.
git-svn-id: https://develop.svn.wordpress.org/trunk@15828 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1467,6 +1467,7 @@ function add_custom_image_header($header_callback, $admin_header_callback, $admi
|
||||
add_action('wp_head', $header_callback);
|
||||
|
||||
add_theme_support( 'custom-header' );
|
||||
add_theme_support( 'custom-header-uploads' );
|
||||
|
||||
if ( ! is_admin() )
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user