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:
Andrew Nacin
2010-10-17 07:12:34 +00:00
parent a5da762a4e
commit b7ffec08f8
2 changed files with 13 additions and 1 deletions

View File

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