[wp-trac] [WordPress Trac] #28212: determine_current_user filter with priority <10 gets overridden
WordPress Trac
noreply at wordpress.org
Mon May 12 01:35:57 UTC 2014
#28212: determine_current_user filter with priority <10 gets overridden
--------------------------+-----------------------------
Reporter: rmccue | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.9
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Introduced in #26706.
`wp_validate_auth_cookie` was shoehorned into this filter, and as such,
doesn't return what the filter expects. On any error at all, it returns
`false`, even if the "error" is that the cookie isn't set. If a function
hooked into a lower priority (i.e. <10) returns a user ID, this will then
be overridden by the built-in auth cookie.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28212>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list