Opened 11 years ago
Closed 11 years ago
#30835 closed defect (bug) (fixed)
[playlist] shortcode not rendered on editor instances not related post content
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 4.2 | Priority: | normal |
| Severity: | normal | Version: | 4.1 |
| Component: | Media | Keywords: | |
| Focuses: | Cc: |
Description
When using a wp_editor instance not related to a post (i.e. using the visual editor for widgets as provided by Black Studio TinyMCE plugin, the [playlist] shortcode is not rendered correctly inside the editor.
This depends on the function 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.
Change History (6)
Note: See
TracTickets for help on using
tickets.
Some media shortcodes rely on the post global, so I'm not sure what to do with this. @wonderboymusic? :)
Should these shortcodes work outside a post context?