mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
strip_tags from title in sanitize_title(). Patch from Masquerade for bugs 0000181 and 00000107.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3e1304d68b
commit
c0a7433958
@ -121,7 +121,7 @@ function remove_accents($string) {
|
||||
|
||||
function sanitize_title($title, $fallback_title = '') {
|
||||
$title = apply_filters('sanitize_title', $title);
|
||||
|
||||
$title = strip_tags($title);
|
||||
if (empty($title)) {
|
||||
$title = $fallback_title;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user