Making WordPress.org

Changeset 8465


Ignore:
Timestamp:
03/15/2019 02:50:55 PM (6 years ago)
Author:
Otto42
Message:

Support Forums: turn off nofollow for topic and reply author links on the forums. Those always link to an internal wordpress.org support profile URL, they are not user input URLs. Fixes #4287

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php

    r8274 r8465  
    3434        add_filter( 'bbp_after_get_reply_author_link_parse_args', array( $this, 'get_author_link' ) );
    3535        add_filter( 'bbp_after_get_author_link_parse_args',       array( $this, 'get_author_link' ) );
     36
     37        // remove nofollow filter from topic and reply author links, since those are wordpress.org profile urls, not user inputs
     38        remove_filter( 'bbp_get_topic_author_link', 'bbp_rel_nofollow' );
     39        remove_filter( 'bbp_get_reply_author_link', 'bbp_rel_nofollow' );
    3640
    3741        // oEmbed.
Note: See TracChangeset for help on using the changeset viewer.