Skip to:
Content

BuddyPress.org

Ticket #8107: 8107.patch

File 8107.patch, 616 bytes (added by imath, 6 years ago)
  • src/bp-core/bp-core-avatars.php

    diff --git src/bp-core/bp-core-avatars.php src/bp-core/bp-core-avatars.php
    index 68365a7a7..b790012da 100644
    add_action( 'wp_ajax_bp_avatar_set', 'bp_avatar_ajax_set' ); 
    13711371function bp_core_get_avatar_data_url_filter( $retval, $id_or_email, $args ) {
    13721372        $user = null;
    13731373
     1374        if ( has_filter( 'pre_option_show_avatars', '__return_true', 100 ) ) {
     1375                return $retval;
     1376        }
     1377
    13741378        // Ugh, hate duplicating code; process the user identifier.
    13751379        if ( is_numeric( $id_or_email ) ) {
    13761380                $user = get_user_by( 'id', absint( $id_or_email ) );