[wp-trac] [WordPress Trac] #49450: WP_REST_Users_Controller includes the entire admin for one utility function

WordPress Trac noreply at wordpress.org
Mon Feb 17 05:31:31 UTC 2020


#49450: WP_REST_Users_Controller includes the entire admin for one utility function
--------------------------------------+-----------------------------
 Reporter:  SergeyBiryukov            |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.4
Component:  Users                     |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:  rest-api
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47299" 47299]:
 {{{
 #!CommitTicketReference repository="" revision="47299"
 Users: Limit the scope of admin files required in
 `WP_REST_Users_Controller`.

 This requires only `wp-admin/includes/user.php` for
 `get_editable_roles()`, instead of `wp-admin/includes/admin.php`.

 Follow-up to [43589].

 Props johnwatkins0.
 Fixes #49450.
 }}}

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


More information about the wp-trac mailing list