Opened 12 years ago
Closed 12 years ago
#30835 closed defect (bug) (fixed)
[playlist] shortcode not rendered on editor instances not related post content
| Reported by: | marcochiesi | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Media | Version: | 4.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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?