Making WordPress.org

Changeset 5047


Ignore:
Timestamp:
03/02/2017 03:25:04 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Suppress Gravatars in revision logs, they are too small to be discernible.

Fixes #2548.

File:
1 edited

Legend:

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

    r5045 r5047  
    1313        add_filter( 'bbp_reply_admin_links', array( $this, 'admin_links' ), 10, 3 );
    1414
    15         // Gravatar suppression on lists of topics.
     15        // Gravatar suppression on lists of topics and revision logs.
    1616        add_filter( 'bbp_after_get_topic_author_link_parse_args', array( $this, 'get_author_link' ) );
    1717        add_filter( 'bbp_after_get_reply_author_link_parse_args', array( $this, 'get_author_link' ) );
     18        add_filter( 'bbp_after_get_author_link_parse_args',       array( $this, 'get_author_link' ) );
    1819
    1920        // oEmbed.
     
    9192
    9293    /**
    93      * Suppress Gravatars on lists of topics.
     94     * Suppress Gravatars on lists of topics and revision logs.
    9495     */
    9596    public function get_author_link( $r ) {
    96         if ( ! bbp_is_single_topic() || bbp_is_topic_edit() ) {
     97        if ( ! bbp_is_single_topic() || bbp_is_topic_edit() || wp_is_post_revision( $r['post_id'] ) ) {
    9798            $r['type'] = 'name';
    9899        }
Note: See TracChangeset for help on using the changeset viewer.