[wp-trac] [WordPress Trac] #30835: [playlist] shortcode not rendered on editor instances not related post content
WordPress Trac
noreply at wordpress.org
Wed Dec 24 12:06:19 UTC 2014
#30835: [playlist] shortcode not rendered on editor instances not related post
content
--------------------------+-----------------------------
Reporter: marcochiesi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.1
Severity: normal | Keywords:
Focuses: ui |
--------------------------+-----------------------------
When using a wp_editor instance not related to a post (i.e. using the
visual editor for widgets as provided by [https://wordpress.org/plugins
/black-studio-tinymce-widget/ Black Studio TinyMCE] plugin, the [playlist]
shortcode is not rendered correctly inside the editor.
This depends on the function
[https://developer.wordpress.org/reference/functions/wp_ajax_parse_media_shortcode/
wp_ajax_parse_media_shortcode] which checks for a valid post ID, but for
such editor instances the post ID is set to 0 in the ajax call, so it
returns false.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30835>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list