[wp-trac] [WordPress Trac] #46302: Function clarity; Rename wp_get_user_request_data to wp_get_user_request as it returns the WP_User_Request
WordPress Trac
noreply at wordpress.org
Mon Feb 10 19:56:04 UTC 2020
#46302: Function clarity; Rename wp_get_user_request_data to wp_get_user_request as
it returns the WP_User_Request
-------------------------------------------------+-------------------------
Reporter: garrett-eclipse | Owner:
| SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.4
Component: Privacy | Version: 4.9.6
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing needs-dev- | Focuses:
note | administration
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"47245" 47245]:
{{{
#!CommitTicketReference repository="" revision="47245"
Privacy: Rename `wp_get_user_request_data()` to `wp_get_user_request()`
for clarity; deprecate the old function.
The function returns an instance of the `WP_User_Request` object itself,
not its `$request_data` property.
Follow-up to [44606].
Props garrett-eclipse.
Fixes #46302.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46302#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list