Add missing preg delimiters. Props ridgerunner. fixes #8986 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@10459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-01-29 17:46:31 +00:00
parent 29c8718141
commit 560eacbb44
3 changed files with 3 additions and 3 deletions

View File

@@ -1960,7 +1960,7 @@ function attribute_escape( $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-Z_:]/', '', $tag_name) );
return apply_filters('tag_escape', $safe_tag, $tag_name);
}