[wp-trac] [WordPress Trac] #51370: Errors in the wp_dropdown_users() function when specifying a non-existent user
WordPress Trac
noreply at wordpress.org
Wed Sep 23 00:26:02 UTC 2020
#51370: Errors in the wp_dropdown_users() function when specifying a non-existent
user
-------------------------------+-----------------------------
Reporter: campusboy1987 | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.6
Component: Posts, Post Types | Version: 5.5.1
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"49036" 49036]:
{{{
#!CommitTicketReference repository="" revision="49036"
Users: Check if the user ID passed as `selected` to `wp_dropdown_users()`
corresponds to an existing user.
This avoids a few PHP notices if the `include_selected` parameter was
specified and a non-existing user ID was passed.
Props campusboy1987.
Fixes #51370.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51370#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list