[wp-trac] [WordPress Trac] #43757: `WP_REST_Attachments_Controller` includes entire admin includes for a few utility functions

WordPress Trac noreply at wordpress.org
Fri Aug 31 23:45:20 UTC 2018


#43757: `WP_REST_Attachments_Controller` includes entire admin includes for a few
utility functions
-------------------------+-----------------------------
 Reporter:  lonelyvegan  |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  5.0
Component:  REST API     |     Version:  trunk
 Severity:  minor        |  Resolution:  fixed
 Keywords:  needs-patch  |     Focuses:
-------------------------+-----------------------------
Changes (by rachelbaker):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43604" 43604]:
 {{{
 #!CommitTicketReference repository="" revision="43604"
 REST API: Load missing required file for multisite users in
 `WP_REST_Attachments_Controller::create_item()`.

 Requires wp-admin/includes/image.php to make `wp_read_image_metadata()`
 function available. Fixes error introduced in [43589].

 Props ocean90, soulseekah.
 Fixes #43757.
 }}}

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


More information about the wp-trac mailing list