Skip to:
Content

BuddyPress.org

Changeset 11194


Ignore:
Timestamp:
10/15/2016 05:47:54 PM (8 years ago)
Author:
r-a-y
Message:

Avatars: Fix issue with wrong avatar showing in the WP Toolbar when on the "Settings > Discussion" page.

Props henry.wright, swissspidy.

Hat-tip mercime for finding out that this ticket was closed without being
committed :)

Fixes #6298.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-avatars.php

    r11091 r11194  
    13851385    global $pagenow;
    13861386
    1387     // Do not filter if inside WordPress options page.
    1388     if ( 'options-discussion.php' == $pagenow )
     1387    // Don't filter if inside WordPress options page and force_default is true.
     1388    if ( 'options-discussion.php' === $pagenow && true === $args['force_default'] ) {
    13891389        return $avatar;
     1390    }
    13901391
    13911392    // If passed an object, assume $user->user_id.
Note: See TracChangeset for help on using the changeset viewer.