Ticket #20448: 20448.5.diff
File 20448.5.diff, 2.6 KB (added by , 13 years ago) |
---|
-
wp-includes/post-template.php
501 501 if ( is_admin_bar_showing() ) 502 502 $classes[] = 'admin-bar'; 503 503 504 if ( get_ background_image() || get_background_color() )504 if ( get_theme_mod( 'background_image' ) || get_theme_mod( 'background_color' ) ) 505 505 $classes[] = 'custom-background'; 506 506 507 507 $page = $wp_query->get( 'page' ); -
wp-includes/theme.php
1102 1102 * @access protected 1103 1103 */ 1104 1104 function _custom_background_cb() { 1105 $background = get_background_image(); 1106 $color = get_background_color(); 1105 $background = get_theme_mod( 'background_image' ); 1106 $color = get_theme_mod( 'background_color' ); 1107 1107 1108 if ( ! $background && ! $color ) 1108 1109 return; 1109 1110 -
wp-content/themes/twentyten/functions.php
94 94 ) ); 95 95 96 96 // This theme allows users to set a custom background. 97 add_theme_support( 'custom-background' ); 97 add_theme_support( 'custom-background', array( 98 // Let WordPress know what our default background color is. 99 'default-color' => 'f1f1f1', 100 ); 98 101 99 102 // The custom header business starts here. 100 103 -
wp-content/themes/twentyeleven/functions.php
97 97 // Add support for a variety of post formats 98 98 add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) ); 99 99 100 $theme_options = twentyeleven_get_theme_options(); 101 if ( 'dark' == $theme_options['color_scheme'] ) 102 $default_background_color = '1d1d1d'; 103 else 104 $default_background_color = 'f1f1f1'; 105 100 106 // Add support for custom backgrounds. 101 add_theme_support( 'custom-background' ); 107 add_theme_support( 'custom-background', array( 108 // Let WordPress know what our default background color is. 109 // This is dependent on our current color scheme. 110 'default-color' => $default_background_color, 111 ) ); 102 112 103 113 // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page Custom Header images 104 114 add_theme_support( 'post-thumbnails' );