Opened 10 years ago
Closed 10 years ago
#40772 closed defect (bug) (fixed)
Shortcodes no longer work in text widget after upgrading to 4.8
| Reported by: | vijustin | Owned by: | westonruter |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.8 |
| Component: | Widgets | Version: | 4.8 |
| Severity: | normal | Keywords: | has-patch has-unit-tests commit |
| Cc: | Focuses: |
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!