[wp-trac] [WordPress Trac] #43757: `WP_REST_Attachments_Controller` includes entire admin includes for a few utility functions
WordPress Trac
noreply at wordpress.org
Wed Oct 31 12:10:32 UTC 2018
#43757: `WP_REST_Attachments_Controller` includes entire admin includes for a few
utility functions
-------------------------+-----------------------------
Reporter: lonelyvegan | Owner: SergeyBiryukov
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.0
Component: REST API | Version: trunk
Severity: minor | Resolution:
Keywords: needs-patch | Focuses:
-------------------------+-----------------------------
Changes (by ocean90):
* keywords: => needs-patch
* status: closed => reopened
* resolution: fixed =>
Comment:
There's still a fatal error when uploading a video or an audio file due to
the missing `wp_read_video_metadata()`/`wp_read_audio_metadata()`
functions. The functions are defined in `wp-admin/includes/media.php` and
called by `wp_generate_attachment_metadata()` in `wp-
admin/includes/image.php`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43757#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list