Changeset 55495 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 03/09/2023 12:18:29 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/formatting.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r55414 r55495 2919 2919 2920 2920 $rel_attr = _make_clickable_rel_attr( $url ); 2921 return $matches[1] . "<a href=\"$url\"$rel_attr>$url</a>" . $suffix; 2922 2921 2922 return $matches[1] . "<a href=\"{$url}\"{$rel_attr}>{$url}</a>" . $suffix; 2923 2923 } 2924 2924 … … 2952 2952 2953 2953 $rel_attr = _make_clickable_rel_attr( $dest ); 2954 return $matches[1] . "<a href='{$dest}'{$rel_attr}>{$dest}</a>{$ret}"; 2954 2955 return $matches[1] . "<a href=\"{$dest}\"{$rel_attr}>{$dest}</a>{$ret}"; 2955 2956 } 2956 2957 … … 2968 2969 function _make_email_clickable_cb( $matches ) { 2969 2970 $email = $matches[2] . '@' . $matches[3]; 2970 return $matches[1] . "<a href=\"mailto:$email\">$email</a>"; 2971 2972 return $matches[1] . "<a href=\"mailto:{$email}\">{$email}</a>"; 2971 2973 } 2972 2974 … … 2980 2982 */ 2981 2983 function _make_clickable_rel_attr( $url ) { 2982 2983 2984 $rel_parts = array(); 2984 2985 $scheme = strtolower( wp_parse_url( $url, PHP_URL_SCHEME ) ); … … 3010 3011 3011 3012 return $rel_attr; 3012 3013 3013 } 3014 3014
Note: See TracChangeset
for help on using the changeset viewer.