[wp-trac] [WordPress Trac] #34346: WP_UnitTestCase::go_to() wipes out custom query vars

WordPress Trac noreply at wordpress.org
Sun Oct 18 05:00:42 UTC 2015


#34346: WP_UnitTestCase::go_to() wipes out custom query vars
------------------------------+------------------------------
 Reporter:  johnbillion       |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:
------------------------------+------------------------------

Comment (by johnbillion):

 In [changeset:"35258"]:
 {{{
 #!CommitTicketReference repository="" revision="35258"
 Preserve the public and private query var properties on the global `WP`
 instance when using `WP_UnitTestCase::go_to()`. These properties apply to
 the application state, not the current request.

 See #34346
 }}}

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


More information about the wp-trac mailing list