From 91bc97be7b700d454c00859df6f27299ec1e05d2 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 12 Oct 2011 20:34:14 +0000 Subject: [PATCH] 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 --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index cbf8b4ff30..f3afcfaa00 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -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); }