[wp-trac] [WordPress Trac] #34361: Embed shortcode is not working in text widgets

WordPress Trac noreply at wordpress.org
Tue Oct 20 06:31:24 UTC 2015


#34361: Embed shortcode is not working in text widgets
-------------------------+------------------------------
 Reporter:  Surbma       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Embeds       |     Version:  4.3.1
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by swissspidy):

 Shortcodes aren't enabled for text widgets by design.

 AFAIK `[embed]` isn't a "normal" shortcode and running the text through
 `do_shortcode` is not enough. Using the `WP_Embed::run_shortcode` method
 should work though. Note that the output isn't cached when not using in a
 post.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34361#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list