[wp-trac] [WordPress Trac] #46795: Fatal error: Call to undefined function get_available_post_mime_types on frontend
WordPress Trac
noreply at wordpress.org
Thu Apr 11 19:15:29 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: assigned
Priority: normal | Milestone: 5.2
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+------------------------------
Changes (by adamsilverstein):
* keywords: => has-patch 2nd-opinion
* owner: (none) => adamsilverstein
* status: new => assigned
Comment:
Testing the P2 theme I can see the fatal and I verified it is resolved by
the patch. i do see `wp_enqueue_media` is generally intended for back end
use however get_available_post_mime_types gets far less use in plugins and
themes.
I'd like to get a second opinion on this change to make sure I am not
missing a potential side effect.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46795#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list