Making WordPress.org

Changeset 5639


Ignore:
Timestamp:
07/10/2017 03:49:59 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Show Gravatars in single replies.

See #2551.

File:
1 edited

Legend:

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

    r5634 r5639  
    117117     */
    118118    public function get_author_link( $r ) {
    119         // Keep Gravatars in search results and moderator views.
    120         if ( bbp_is_search_results() || bbp_is_single_view() && in_array( bbp_get_view_id(), array( 'spam', 'pending', 'archived' ) ) ) {
     119        // Keep Gravatars in single topics or replies, search results, and moderator views.
     120        if (
     121            bbp_is_single_topic() || bbp_is_single_reply() || bbp_is_search_results()
     122        ||
     123            bbp_is_single_view() && in_array( bbp_get_view_id(), array( 'spam', 'pending', 'archived' ) )
     124        ) {
    121125            return $r;
    122126        }
Note: See TracChangeset for help on using the changeset viewer.