Changeset 46396
- Timestamp:
- 10/05/2019 12:55:48 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r46349 r46396 3064 3064 */ 3065 3065 function wp_rel_nofollow( $text ) { 3066 // This is a pre 3066 // This is a pre-save filter, so text is already escaped. 3067 3067 $text = stripslashes( $text ); 3068 $rel = 'nofollow';3069 3068 $text = preg_replace_callback( 3070 3069 '|<a (.+?)>|i', 3071 function( $matches ) use ( $rel ){3072 return wp_rel_callback( $matches, $rel);3070 function( $matches ) { 3071 return wp_rel_callback( $matches, 'nofollow' ); 3073 3072 }, 3074 3073 $text … … 3099 3098 */ 3100 3099 function wp_rel_ugc( $text ) { 3101 // This is a pre 3100 // This is a pre-save filter, so text is already escaped. 3102 3101 $text = stripslashes( $text ); 3103 $rel = 'nofollow ugc';3104 3102 $text = preg_replace_callback( 3105 3103 '|<a (.+?)>|i', 3106 function( $matches ) use ( $rel ){3107 return wp_rel_callback( $matches, $rel);3104 function( $matches ) { 3105 return wp_rel_callback( $matches, 'nofollow ugc' ); 3108 3106 }, 3109 3107 $text
Note: See TracChangeset
for help on using the changeset viewer.