Skip to content

Commit

Permalink
Note theme support for custom background, header, and menus. see #11817
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@13417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Feb 25, 2010
1 parent e2f5b1f commit a3ae373
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-content/themes/twentyten/functions.php
Expand Up @@ -31,6 +31,9 @@ function twentyten_init() {
// This theme needs post thumbnails
add_theme_support( 'post-thumbnails' );

// This theme uses wp_nav_menu()
add_theme_support( 'nav-menus' );

// We'll be using them for custom header images on posts and pages
// so we want them to be 940 pixels wide by 198 pixels tall (larger images will be auto-cropped to fit)
set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );
Expand Down
4 changes: 4 additions & 0 deletions wp-includes/theme.php
Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit a3ae373

Please sign in to comment.