[wp-trac] [WordPress Trac] #21510: Use get_background_color() in _custom_background_cb()

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 7 17:57:52 UTC 2012


#21510: Use get_background_color() in _custom_background_cb()
--------------------------+-----------------------------
 Reporter:  greenshady    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  3.4.1
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 When themes add a default background color via the `custom-background`
 feature, it isn't shown until the user saves it in the admin.  The issue
 is that the `_custom_background_cb()` uses `get_theme_mod(
 'background_color' )` instead of `get_background_color()`, which will
 handle the default.

 The attached patch should correct this.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21510>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list