Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/23/2017 05:58:21 PM (8 years ago)
Author:
boonebgorges
Message:

Filter WP avatars at get_avatar_url instead of get_avatar.

The get_avatar_url filter, introduced in WP 4.2, is a more general
point for filtering avatar URLs than the legacy get_avatar. The
URL-specific filter allows us to simplify our filter logic, and
ensures that developers fetching avatar data with get_avatar_data()
get BP avatars when appropriate.

Props elhardoum, r-a-y.
Fixes #7424.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/class-buddypress.php

    r11593 r11614  
    478478            require( $this->plugin_dir . 'bp-core/deprecated/2.6.php' );
    479479            require( $this->plugin_dir . 'bp-core/deprecated/2.7.php' );
     480            require( $this->plugin_dir . 'bp-core/deprecated/2.8.php' );
     481            require( $this->plugin_dir . 'bp-core/deprecated/2.9.php' );
    480482        }
    481483    }
Note: See TracChangeset for help on using the changeset viewer.