[wp-trac] [WordPress Trac] #39988: The theme used during tests should call wp_head() and wp_footer()

WordPress Trac noreply at wordpress.org
Tue Feb 28 16:37:30 UTC 2017


#39988: The theme used during tests should call wp_head() and wp_footer()
------------------------------+-------------------------
 Reporter:  johnbillion       |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  4.7.4
Component:  Build/Test Tools  |    Version:  4.7
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:                    |
------------------------------+-------------------------
 The `wp_head()` and `wp_footer()` functions are required for all themes,
 and it's safe to assume that all themes call these. The
 `themedir1/default` theme used in the tests (#31550) doesn't.

 The effect that #31550 had was that it broke the tests in some of my
 plugins which assume that the current theme calls `wp_footer()`. This is a
 safe assumption to make, therefore the `themedir1/default` theme should
 call these functions.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39988>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list