diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 7e0ee55f33..dc9760574e 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -3032,6 +3032,8 @@ function wp_rel_nofollow_callback( $matches ) { /** * Adds rel noreferrer and noopener to all HTML A elements that have a target. * + * @since 5.1.0 + * * @param string $text Content that may contain HTML A elements. * @return string Converted content. */ @@ -3050,6 +3052,8 @@ function wp_targeted_link_rel( $text ) { * Will not duplicate existing noreferrer and noopener values * to prevent from invalidating the HTML. * + * @since 5.1.0 + * * @param array $matches Single Match * @return string HTML A Element with rel noreferrer noopener in addition to any existing values */