Skip to content

Commit 7c015b4

Browse files
committed
Clarify that tag_escape() returns santiized value not escaped value
1 parent b2cbd97 commit 7c015b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/formatting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4809,7 +4809,7 @@ static function ( $matches ) {
48094809
* @since 6.5.5 Allow hyphens in tag names (i.e. custom elements).
48104810
*
48114811
* @param string $tag_name
4812-
* @return string Escaped tag name.
4812+
* @return string Sanitized tag name.
48134813
*/
48144814
function tag_escape( $tag_name ) {
48154815
$safe_tag = strtolower( preg_replace( '/[^a-zA-Z0-9-_:]/', '', $tag_name ) );

0 commit comments

Comments
 (0)