In sanitize_title(), strip_tags() before sanitizing, not after. In post.php, if post name is empty, pass the post title to the sanitizer.

git-svn-id: https://develop.svn.wordpress.org/trunk@1512 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2004-08-06 01:28:51 +00:00
parent c142f1c2a1
commit 32bd9e6ac7
2 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -120,8 +120,9 @@ function remove_accents($string) {
}
function sanitize_title($title, $fallback_title = '') {
$title = apply_filters('sanitize_title', $title);
$title = strip_tags($title);
$title = apply_filters('sanitize_title', $title);
if (empty($title)) {
$title = $fallback_title;
}