Allow 0 - 9 in tag_escape(). Props sirzooro. fixes #18765

git-svn-id: http://svn.automattic.com/wordpress/trunk@18955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-10-12 20:34:14 +00:00
parent c28bd6af03
commit 91bc97be7b

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