Changeset 6378
- Timestamp:
- 03/16/2017 05:20:24 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/tests/phpunit/testcases/common/formatting.php ¶
r6377 r6378 27 27 $name = $user->user_nicename; 28 28 $link = sprintf( $anchor, esc_url( $url ), esc_html( $name ) ); 29 $link = bbp_rel_nofollow( $link ); 29 30 30 31 // mentions inside links, should not be replaced … … 89 90 $name = $user->user_nicename; 90 91 $link = sprintf( $anchor, esc_url( $url ), esc_html( $user->user_nicename ) ); 92 $link = bbp_rel_nofollow( $link ); 91 93 92 94 // mentions inside links (with an external match) should not be replaced inside href ever … … 166 168 $name_1 = $user_1->user_nicename; 167 169 $link_1 = sprintf( $anchor_1, esc_url( $url_1 ), esc_html( $name_1 ) ); 170 $link_1 = bbp_rel_nofollow( $link_1 ); 168 171 169 172 $user_2 = get_userdata( $u2 ); … … 172 175 $name_2 = $user_2->user_nicename; 173 176 $link_2 = sprintf( $anchor_2, esc_url( $url_2 ), esc_html( $name_2 ) ); 177 $link_2 = bbp_rel_nofollow( $link_2 ); 174 178 175 179 // Multiples … … 215 219 $name_1 = $user_1->user_nicename; 216 220 $link_1 = sprintf( $anchor_1, esc_url( $url_1 ), esc_html( $name_1 ) ); 221 $link_1 = bbp_rel_nofollow( $link_1 ); 217 222 218 223 $user_2 = get_userdata( $u2 ); … … 221 226 $name_2 = $user_2->user_nicename; 222 227 $link_2 = sprintf( $anchor_2, esc_url( $url_2 ), esc_html( $name_2 ) ); 228 $link_2 = bbp_rel_nofollow( $link_2 ); 223 229 224 230 // Multiples
Note: See TracChangeset
for help on using the changeset viewer.