[wp-trac] [WordPress Trac] #49731: Display embeds in WordPress plugin descriptions
WordPress Trac
noreply at wordpress.org
Tue Mar 31 03:05:52 UTC 2020
#49731: Display embeds in WordPress plugin descriptions
----------------------------+-----------------------------
Reporter: dd32 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version:
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
The WordPress.org plugin directory
[https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html
/wp-content/plugins/plugin-directory/class-plugin-directory.php#L573
supports several embeds], specifically `[youtube`, `[vimeo`, and
`[videopress`.
Most of these embeds appear to return `iframe` elements, which are removed
by Core, see [https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/plugin-install.php#L533 $plugins_allowedtags].
For example, the Updraft Plus plugin has an embed on the WordPress.org
site, but not within the WordPress Add new plugin screen.
If you have Jetpack installed, it appears that it converts the `iframe`
into a shortcode and displays that instead.
This was originally reported as #meta2846, see that ticket for an example
of the HTML that's stripped by this behaviour.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49731>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list