diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-01 18:08:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-01 18:08:41 +0000 |
commit | 3ce72ee99bc230c3df10841a69d0ff243eb1a0bb (patch) | |
tree | 035fdbe0ae826e1c990c61f5cecc91ba12545f27 /wp-includes/formatting.php | |
parent | Adding upstream version 6.5.3+dfsg1. (diff) | |
download | wordpress-3ce72ee99bc230c3df10841a69d0ff243eb1a0bb.tar.xz wordpress-3ce72ee99bc230c3df10841a69d0ff243eb1a0bb.zip |
Adding upstream version 6.5.5+dfsg1.upstream/6.5.5+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/formatting.php')
-rw-r--r-- | wp-includes/formatting.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index a756f6d..b097d00 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -4802,12 +4802,13 @@ EOF; * Escapes an HTML tag name. * * @since 2.5.0 + * @since 6.5.5 Allow hyphens in tag names (i.e. custom elements). * * @param string $tag_name * @return string */ function tag_escape( $tag_name ) { - $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9_:]/', '', $tag_name ) ); + $safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9-_:]/', '', $tag_name ) ); /** * Filters a string cleaned and escaped for output as an HTML tag. * |