[wp-trac] [WordPress Trac] #39367: Don't no-op $user_id in test suite's wp_set_auth_cookie()

WordPress Trac noreply at wordpress.org
Mon Feb 27 18:55:40 UTC 2017


#39367: Don't no-op $user_id in test suite's wp_set_auth_cookie()
------------------------------+------------------
 Reporter:  danielbachhuber   |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.8
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+------------------
Changes (by johnbillion):

 * keywords:  needs-patch => has-patch


Comment:

 [attachment:39367.diff] adds a filter to `wp_set_auth_cookie()` and
 `wp_clear_auth_cookie()` which allows the actual output of the cookies to
 be prevented, while retaining the various logic included with them to run,
 and the hooks to fire.

 Thoughts?

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


More information about the wp-trac mailing list