[wp-trac] [WordPress Trac] #46795: Fatal error: Call to undefined function get_available_post_mime_types on frontend
WordPress Trac
noreply at wordpress.org
Tue Apr 16 20:29:49 UTC 2019
#46795: Fatal error: Call to undefined function get_available_post_mime_types on
frontend
------------------------------+------------------------------
Reporter: david.binda | Owner: adamsilverstein
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.2
Component: Media | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+------------------------------
Changes (by adamsilverstein):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"45219" 45219]:
{{{
#!CommitTicketReference repository="" revision="45219"
Media: move `get_available_post_mime_types` to `wp-includes/post.php`
making it more generally available.
Address an issue since r44947 where calling `wp_enqueue_media` on the
front-end would result in a PHP fatal.
Props david.binda.
Fixes #46795.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46795#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list