Make WordPress Core


Ignore:
Timestamp:
07/18/2017 10:10:41 PM (8 years ago)
Author:
westonruter
Message:

Widgets: Replace adding balanceTags on widget_custom_html_content filter in favor of just applying widget_text filters in the Custom HTML widget.

Ensures that users who copy HTML from the Text widget in legacy mode over to the Custom HTML widget will continue to get all of the same filters applied, including tag balancing and shortcodes, if a plugin added support. Plugins still have the widget_text_content and widget_custom_html_content filters they can use to target the specific widget types.

Amends [40893].
See #40951.
Fixes #40907 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r40926 r41086  
    170170add_filter( 'widget_text_content', 'convert_smilies',  20 );
    171171add_filter( 'widget_text_content', 'wpautop'              );
    172 
    173 add_filter( 'widget_custom_html_content', 'balanceTags' );
    174172
    175173add_filter( 'date_i18n', 'wp_maybe_decline_date' );
Note: See TracChangeset for help on using the changeset viewer.