Widgets: add a default filter for widget_text (used by the Text widget), balanceTags, which respects the option for use_balanceTags.

Props MikeHansenMe.
Fixes #23083.

Built from https://develop.svn.wordpress.org/trunk@35103


git-svn-id: http://core.svn.wordpress.org/trunk@35068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-10-13 01:40:26 +00:00
parent aa92c9555a
commit 2e6865a7fb
2 changed files with 3 additions and 1 deletions

View File

@ -157,6 +157,8 @@ add_filter( 'list_cats', 'wptexturize' );
add_filter( 'wp_sprintf', 'wp_sprintf_l', 10, 2 ); add_filter( 'wp_sprintf', 'wp_sprintf_l', 10, 2 );
add_filter( 'widget_text', 'balanceTags' );
// RSS filters // RSS filters
add_filter( 'the_title_rss', 'strip_tags' ); add_filter( 'the_title_rss', 'strip_tags' );
add_filter( 'the_title_rss', 'ent2ncr', 8 ); add_filter( 'the_title_rss', 'ent2ncr', 8 );

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-35102'; $wp_version = '4.4-alpha-35103';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.