[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
Fri Apr 3 22:21:36 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 has-dev-     |     Focuses:
  note                                           |  administration
-------------------------------------------------+-------------------------

Comment (by johnjamesjacoby):

 I believe this was erroneously deprecated into:

 `/wp-admin/includes/deprecated.php`

 instead of:

 `/wp-includes/deprecated.php`.

 Both the original function and the new one are available outside of
 WordPress admin, but the deprecated function is now only available within
 WordPress admin, which is a back-compat break.

 See: https://buddypress.trac.wordpress.org/ticket/8265

 @SergeyBiryukov Reopen, or create a new issue for 5.4.1?

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


More information about the wp-trac mailing list