mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Note theme support for custom background, header, and menus. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13417 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1327,6 +1327,8 @@ function add_custom_image_header($header_callback, $admin_header_callback, $admi
|
||||
if ( ! empty($header_callback) )
|
||||
add_action('wp_head', $header_callback);
|
||||
|
||||
add_theme_support( 'custom-header' );
|
||||
|
||||
if ( ! is_admin() )
|
||||
return;
|
||||
require_once(ABSPATH . 'wp-admin/custom-header.php');
|
||||
@@ -1393,6 +1395,8 @@ function add_custom_background($header_callback = '', $admin_header_callback = '
|
||||
|
||||
add_action('wp_head', $header_callback);
|
||||
|
||||
add_theme_support( 'custom-background' );
|
||||
|
||||
if ( ! is_admin() )
|
||||
return;
|
||||
require_once(ABSPATH . 'wp-admin/custom-background.php');
|
||||
|
||||
Reference in New Issue
Block a user