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:
parent
c28bd6af03
commit
91bc97be7b
|
@ -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