mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Allows 0 titles when sanitizing. Props mdawaffe. fixes #5293
git-svn-id: https://develop.svn.wordpress.org/trunk@6409 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -329,9 +329,8 @@ function sanitize_title($title, $fallback_title = '') {
|
||||
$title = strip_tags($title);
|
||||
$title = apply_filters('sanitize_title', $title);
|
||||
|
||||
if (empty($title)) {
|
||||
if ( '' === $title || false === $title )
|
||||
$title = $fallback_title;
|
||||
}
|
||||
|
||||
return $title;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user