Skip to:
Content

bbPress.org

Changeset 5727


Ignore:
Timestamp:
05/10/2015 09:46:31 AM (10 years ago)
Author:
netweb
Message:

Add bbp_rel_nofollow and wp_unslash filters to bbp_get_topic_reply_link and bbp_get_reply_to_link topic reply links.

Props netweb. Fixes #2515

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/filters.php

    r5714 r5727  
    126126add_filter( 'bbp_edit_forum_pre_content', 'balanceTags',     40 );
    127127
    128 // No follow and wp_unslash on user profile links
     128// No follow and wp_unslash on links
    129129add_filter( 'bbp_get_reply_author_link',      'bbp_rel_nofollow' );
    130130add_filter( 'bbp_get_reply_author_link',      'wp_unslash'       );
     131add_filter( 'bbp_get_reply_to_link',          'bbp_rel_nofollow' );
     132add_filter( 'bbp_get_reply_to_link',          'wp_unslash'       );
    131133add_filter( 'bbp_get_topic_author_link',      'bbp_rel_nofollow' );
    132134add_filter( 'bbp_get_topic_author_link',      'wp_unslash'       );
     135add_filter( 'bbp_get_topic_reply_link',       'bbp_rel_nofollow' );
     136add_filter( 'bbp_get_topic_reply_link',       'wp_unslash'       );
    133137add_filter( 'bbp_get_user_favorites_link',    'bbp_rel_nofollow' );
    134138add_filter( 'bbp_get_user_favorites_link',    'wp_unslash'       );
Note: See TracChangeset for help on using the changeset viewer.