[wp-trac] [WordPress Trac] #28687: Removing background image and/or reverting background color to default doesn't remove custom-background body class and remove theme mods

WordPress Trac noreply at wordpress.org
Wed Apr 8 17:28:24 UTC 2015


#28687: Removing background image and/or reverting background color to default
doesn't remove custom-background body class and remove theme mods
---------------------------+----------------------
 Reporter:  slobodanmanic  |       Owner:  ocean90
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  4.2
Component:  Themes         |     Version:  3.9
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+----------------------
Changes (by ocean90):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"32081"]:
 {{{
 #!CommitTicketReference repository="" revision="32081"
 Don't print the `custom-background` class in `body_class()` when a default
 color is in use.

 `.custom-background` should only be added if a background color or an
 image divert from their defaults. This behavior exists already in
 `_custom_background_cb()`.

 props slobodanmanic, nitkr, valendesigns, obenland.
 see [21054], [21001].
 fixes #28687.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28687#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list