From 6f6ef8709a19b7d62833db151f40d2fd8aa1b925 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 17 Mar 2009 17:42:54 +0000 Subject: [PATCH] Pass the unprocessed title to the sanitize_title filter. Props chineseleper. fixes #8981 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@10804 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/formatting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 19d175ecab..f636fdd564 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -636,8 +636,9 @@ function sanitize_user( $username, $strict = false ) { * @return string The sanitized string. */ function sanitize_title($title, $fallback_title = '') { + $raw_title = $title; $title = strip_tags($title); - $title = apply_filters('sanitize_title', $title); + $title = apply_filters('sanitize_title', $title, $raw_title); if ( '' === $title || false === $title ) $title = $fallback_title;