Make WordPress Core


Ignore:
Timestamp:
05/25/2012 05:58:57 PM (13 years ago)
Author:
nacin
Message:

Preview by default the registered default image for custom backgrounds. props mfields, billerickson.

If there is a default color registered, show a 'Default' action rather than a 'Clear' action, as clearing the value would simply return to the default.

Make current_theme_supports() accept a second argument for 'custom-background' requests, the same as get_theme_support(). Missed in earlier changes, see #20249.

fixes #20734, fixes #18041.

File:
1 edited

Legend:

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

    r20893 r20901  
    15021502
    15031503        case 'custom-header':
    1504             // specific custom header capabilities can be registered by passing
     1504        case 'custom-background' :
     1505            // specific custom header and background capabilities can be registered by passing
    15051506            // an array to add_theme_support()
    15061507            $header_support = $args[0];
Note: See TracChangeset for help on using the changeset viewer.