WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/01/2012 08:31:50 PM (9 years ago)
Author:
ryan
Message:

Custom background fixes:

  • Specify default background colors for the bundled themes.
  • Change the default custom background callback to only operate on saved values, rather than default values.
  • Prevent an unsaved default value from overriding a manually modified style.css file.

Props nacin, kobenland
fixes #20448

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r20934 r20973  
    11031103 */
    11041104function _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
    11071108    if ( ! $background && ! $color )
    11081109        return;
Note: See TracChangeset for help on using the changeset viewer.