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:
Ryan Boren 2011-10-12 20:34:14 +00:00
parent 3ed641402e
commit ec9060cc99
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}