[wp-trac] [WordPress Trac] #40772: Shortcodes no longer work in text widget after upgrading to 4.8
WordPress Trac
noreply at wordpress.org
Mon May 15 20:55:12 UTC 2017
#40772: Shortcodes no longer work in text widget after upgrading to 4.8
--------------------------+-----------------------------
Reporter: vijustin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The previous method of allowing shortcodes to execute in text widgets via
{{{ add_filter('widget_text', 'do_shortcode'); }}} no longer works after
upgrading to 4.8.
Changing line 98 {{{ $text = apply_filters( 'widget_text_content',
$widget_text, $instance, $this ); }}} to
{{{ $text = apply_filters( 'widget_text_content', $text, $instance, $this
); }}} allows the filters applied via line 82 to pass through.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40772>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list