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-content/themes/twentyten/functions.php

    r20474 r20973  
    9595
    9696    // 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    ) );
    98101
    99102    // The custom header business starts here.
Note: See TracChangeset for help on using the changeset viewer.