[wp-trac] [WordPress Trac] #38168: custom-background class appear in body class attribute even if theme doesn't support it

WordPress Trac noreply at wordpress.org
Mon Apr 1 16:17:18 UTC 2019


#38168: custom-background class appear in body class attribute even if theme
doesn't support it
--------------------------------------+-----------------------------
 Reporter:  wido                      |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.2
Component:  Customize                 |     Version:  3.0
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  template
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45088" 45088]:
 {{{
 #!CommitTicketReference repository="" revision="45088"
 Customize: Only add `custom-background` to `body_class()` if the current
 theme supports custom background.

 Props wido, swissspidy, ocean90, Mte90.
 Fixes #38168.
 }}}

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


More information about the wp-trac mailing list