[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
Wed Nov 2 20:49:19 UTC 2016


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

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests needs-
     refresh


Comment:

 Hmm, the test doesn't work:

 {{{
 EF                                                                  2 / 2
 (100%)

 Time: 3.44 seconds, Memory: 84.00MB

 There was 1 error:

 1)
 Tests_Post_GetBodyClass::test_custom_background_class_is_added_when_theme_supports_it
 Undefined index: wp-head-callback

 /src/wp-includes/theme.php:2310
 /src/wp-includes/theme.php:2266
 /tests/phpunit/tests/post/getBodyClass.php:192

 --

 There was 1 failure:

 1)
 Tests_Post_GetBodyClass::test_custom_background_class_is_not_added_when_theme_support_is_missing
 Failed asserting that true is false.

 /tests/phpunit/tests/post/getBodyClass.php:209
 }}}

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


More information about the wp-trac mailing list