Opened 9 years ago
Closed 9 years ago
#40772 closed defect (bug) (fixed)
Shortcodes no longer work in text widget after upgrading to 4.8
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.8 | Priority: | normal |
| Severity: | normal | Version: | 4.8 |
| Component: | Widgets | Keywords: | has-patch has-unit-tests commit |
| Focuses: | Cc: |
Description
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.
Attachments (2)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Good catch @vijustin, thanks!