[wp-meta] [Making WordPress.org] #2846: Shortcodes in Plugin Description aren't handled in the 'View Details' popup

Making WordPress.org noreply at wordpress.org
Tue Mar 31 03:00:45 UTC 2020


#2846: Shortcodes in Plugin Description aren't handled in the 'View Details' popup
------------------------------+-------------------------------------------
 Reporter:  garrett-eclipse   |       Owner:  (none)
     Type:  defect            |      Status:  new
 Priority:  normal            |   Milestone:  Plugin Directory v3 - Future
Component:  Plugin Directory  |  Resolution:
 Keywords:  2nd-opinion       |
------------------------------+-------------------------------------------

Comment (by dd32):

 3 years later, this is a Core bug.

 The WordPress.org plugins api does send the embeds, but core `wp_kses`
 strips them out.

 If you have Jetpack Active, it appears that you see a `[vimeo]` shortcode
 instead.

 The first plugin I found which uses a Vimeo embed is
 [https://wordpress.org/plugins/updraftplus/ Updraft plus], you'll see the
 iframe code in the
 [https://api.wordpress.org/plugins/info/1.1/?action=plugin_information&request[slug]=updraftplus
 API response] but not within WordPress's plugin info page.

 The core wp_kses in question strips the embed down from this
 {{{
 <div class="embed-vimeo" style="text-align: center;">
 <iframe src="https://player.vimeo.com/video/154870690" width="640"
 height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen
 allowfullscreen></iframe>
 </div>
 }}}

 to {{{ <div class="embed-vimeo"></div> }}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/2846#comment:4>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list