strip_tags from title in sanitize_title(). Patch from Masquerade for bugs 0000181 and 00000107.
git-svn-id: https://develop.svn.wordpress.org/trunk@1488 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3a5935b85a
commit
5cf4b39065
|
@ -121,7 +121,7 @@ function remove_accents($string) {
|
||||||
|
|
||||||
function sanitize_title($title, $fallback_title = '') {
|
function sanitize_title($title, $fallback_title = '') {
|
||||||
$title = apply_filters('sanitize_title', $title);
|
$title = apply_filters('sanitize_title', $title);
|
||||||
|
$title = strip_tags($title);
|
||||||
if (empty($title)) {
|
if (empty($title)) {
|
||||||
$title = $fallback_title;
|
$title = $fallback_title;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue