mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Docs: Add missing @since tags for wp_targeted_link_rel() and wp_targeted_link_rel_callback().
See #43187, #46543. git-svn-id: https://develop.svn.wordpress.org/trunk@45163 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user