Allow 0 - 9 in tag_escape(). Props sirzooro. fixes #18765
git-svn-id: https://develop.svn.wordpress.org/trunk@18955 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3ed641402e
commit
ec9060cc99
@ -2440,7 +2440,7 @@ function esc_textarea( $text ) {
|
||||
* @return string
|
||||
*/
|
||||
function tag_escape($tag_name) {
|
||||
$safe_tag = strtolower( preg_replace('/[^a-zA-Z_:]/', '', $tag_name) );
|
||||
$safe_tag = strtolower( preg_replace('/[^a-zA-Z0-9_:]/', '', $tag_name) );
|
||||
return apply_filters('tag_escape', $safe_tag, $tag_name);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user