[wp-trac] [WordPress Trac] #33449: WP_User_Query generating notice (undefined index has_published_posts)
WordPress Trac
noreply at wordpress.org
Sat Oct 3 18:44:42 UTC 2015
#33449: WP_User_Query generating notice (undefined index has_published_posts)
-------------------------------------------+---------------------------
Reporter: Veraxus | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Query | Version: 4.3
Severity: normal | Resolution: fixed
Keywords: needs-patch reporter-feedback | Focuses:
-------------------------------------------+---------------------------
Changes (by boonebgorges):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"34804"]:
{{{
#!CommitTicketReference repository="" revision="34804"
Ensure that `WP_User_Query` vars are filled after 'pre_get_users'.
This prevents notices from being thrown when a 'pre_get_users' callback
removes required values from the list of `query_vars`.
For backward compatibility with previous uses of 'pre_get_users', default
values are parsed both before and after the action is fired.
Fixes #33449.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33449#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list