Changeset 46564 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 10/21/2019 08:39:16 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r46470 r46564 2836 2836 } 2837 2837 2838 return $matches[1] . "<a href=\"$url\" rel=\"nofollow\">$url</a>" . $suffix; 2838 if ( 'comment_text' === current_filter() ) { 2839 $rel = 'nofollow ugc'; 2840 } else { 2841 $rel = 'nofollow'; 2842 } 2843 2844 /** 2845 * Filters the rel value that is added to URL matches converted to links. 2846 * 2847 * @since 5.3.0 2848 * 2849 * @param string $rel The rel value. 2850 * @param string $url The matched URL being converted to a link tag. 2851 */ 2852 $rel = apply_filters( 'make_clickable_rel', $rel, $url ); 2853 $rel = esc_attr( $rel ); 2854 2855 return $matches[1] . "<a href=\"$url\" rel=\"$rel\">$url</a>" . $suffix; 2839 2856 } 2840 2857 … … 2866 2883 } 2867 2884 2868 return $matches[1] . "<a href=\"$dest\" rel=\"nofollow\">$dest</a>$ret"; 2885 if ( 'comment_text' === current_filter() ) { 2886 $rel = 'nofollow ugc'; 2887 } else { 2888 $rel = 'nofollow'; 2889 } 2890 2891 /** This filter is documented in wp-includes/formatting.php */ 2892 $rel = apply_filters( 'make_clickable_rel', $rel, $dest ); 2893 $rel = esc_attr( $rel ); 2894 2895 return $matches[1] . "<a href=\"$dest\" rel=\"$rel\">$dest</a>$ret"; 2869 2896 } 2870 2897 … … 3149 3176 * @since 5.1.0 3150 3177 * 3151 * @param string The rel values.3178 * @param string $rel The rel values. 3152 3179 * @param string $link_html The matched content of the link tag including all HTML attributes. 3153 3180 */
Note: See TracChangeset
for help on using the changeset viewer.