[wp-trac] [WordPress Trac] #51791: When wp_prepare_attachment_for_js() is called too early, a fatal occurs "Call to undefined function get_media_states()"
WordPress Trac
noreply at wordpress.org
Mon Nov 16 18:24:14 UTC 2020
#51791: When wp_prepare_attachment_for_js() is called too early, a fatal occurs
"Call to undefined function get_media_states()"
--------------------------+---------------------
Reporter: rebasaurus | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.6
Component: Media | Version: trunk
Severity: major | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+---------------------
Changes (by helen):
* milestone: Awaiting Review => 5.6
Comment:
Just for reference, what's the use case for calling this in such a context
(JS front end, something else)? This will help make sure we make the right
fix and don't break it again in the future.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51791#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list