From ec9060cc9912b0629117b4569336dd1a23bc4f53 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 12 Oct 2011 20:34:14 +0000 Subject: [PATCH] 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 --- 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); }