[wp-trac] [WordPress Trac] #10457: Parse shortcodes in text widgets by default

WordPress Trac noreply at wordpress.org
Wed Sep 23 03:50:05 UTC 2015


#10457: Parse shortcodes in text widgets by default
-------------------------------------+-----------------------------
 Reporter:  ionfish                  |       Owner:  westi
     Type:  enhancement              |      Status:  reopened
 Priority:  normal                   |   Milestone:  Future Release
Component:  Widgets                  |     Version:  2.8
 Severity:  normal                   |  Resolution:
 Keywords:  westi-likes needs-patch  |     Focuses:
-------------------------------------+-----------------------------

Comment (by webdevmattcrom):

 Chatted about this in Slack today. Here's how I see it happening
 (potentially), and would love for @nacin to elaborate on "Needs new
 approach"

 * 1 -- Simply support shortcodes in Core Text Widgets and use the
 prevailing filter method (add_filter('widget_text', 'do_shortcode');`) to
 DISABLE them instead of enable them.
 * 2 -- Add a checkbox in the Text Widget that simply says "Enable
 Shortcodes" directly under the existing "Automatically add Paragraphs"
 checkbox.
 * 3 -- Add a setting somewhere under "Settings". Perhaps Reading...?

 Of those three I think "2" makes the most sense because it fits with the
 current user experience and is not global.

 Thoughts? Happy to contribute to this if it's a viable idea.

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


More information about the wp-trac mailing list