mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user