Skip to:
Content

bbPress.org

Changeset 6378


Ignore:
Timestamp:
03/16/2017 05:20:24 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Formatting: Add rel-nofollow to tests. See #2963.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/tests/phpunit/testcases/common/formatting.php

    r6377 r6378  
    2727        $name   = $user->user_nicename;
    2828        $link   = sprintf( $anchor, esc_url( $url ), esc_html( $name ) );
     29        $link   = bbp_rel_nofollow( $link );
    2930
    3031        // mentions inside links, should not be replaced
     
    8990        $name   = $user->user_nicename;
    9091        $link   = sprintf( $anchor, esc_url( $url ), esc_html( $user->user_nicename ) );
     92        $link   = bbp_rel_nofollow( $link );
    9193
    9294        // mentions inside links (with an external match) should not be replaced inside href ever
     
    166168        $name_1   = $user_1->user_nicename;
    167169        $link_1   = sprintf( $anchor_1, esc_url( $url_1 ), esc_html( $name_1 ) );
     170        $link_1   = bbp_rel_nofollow( $link_1 );
    168171
    169172        $user_2   = get_userdata( $u2 );
     
    172175        $name_2   = $user_2->user_nicename;
    173176        $link_2   = sprintf( $anchor_2, esc_url( $url_2 ), esc_html( $name_2 ) );
     177        $link_2   = bbp_rel_nofollow( $link_2 );
    174178
    175179        // Multiples
     
    215219        $name_1   = $user_1->user_nicename;
    216220        $link_1   = sprintf( $anchor_1, esc_url( $url_1 ), esc_html( $name_1 ) );
     221        $link_1   = bbp_rel_nofollow( $link_1 );
    217222
    218223        $user_2   = get_userdata( $u2 );
     
    221226        $name_2   = $user_2->user_nicename;
    222227        $link_2   = sprintf( $anchor_2, esc_url( $url_2 ), esc_html( $name_2 ) );
     228        $link_2   = bbp_rel_nofollow( $link_2 );
    223229
    224230        // Multiples
Note: See TracChangeset for help on using the changeset viewer.