From 2e6865a7fba4a082252a4b9653a4acfbc55fba61 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 13 Oct 2015 01:40:26 +0000 Subject: [PATCH] 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 --- wp-includes/default-filters.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index 8bdebe5b8d..75dadfc465 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -157,6 +157,8 @@ add_filter( 'list_cats', 'wptexturize' ); add_filter( 'wp_sprintf', 'wp_sprintf_l', 10, 2 ); +add_filter( 'widget_text', 'balanceTags' ); + // RSS filters add_filter( 'the_title_rss', 'strip_tags' ); add_filter( 'the_title_rss', 'ent2ncr', 8 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8083b2502a..407b98768b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.