WordPress.org

Making WordPress.org

Changeset 5052


Ignore:
Timestamp:
03/03/2017 05:26:36 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Don't suppress Gravatars in search results and moderator views.

See #2543.

File:
1 edited

Legend:

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

    r5047 r5052  
    9595     */
    9696    public function get_author_link( $r ) {
     97        // Keep Gravatars in search results and moderator views.
     98        if ( bbp_is_search_results() || bbp_is_single_view() && in_array( bbp_get_view_id(), array( 'spam', 'pending', 'archived' ) ) ) {
     99            return $r;
     100        }
     101
    97102        if ( ! bbp_is_single_topic() || bbp_is_topic_edit() || wp_is_post_revision( $r['post_id'] ) ) {
    98103            $r['type'] = 'name';
    99104        }
     105
    100106        return $r;
    101107    }
Note: See TracChangeset for help on using the changeset viewer.