Skip to:
Content

BuddyPress.org

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#6944 closed defect (bug) (worksforme)

'bp_core_fetch_avatar_no_grav' no longer working

Reported by: maelga Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Cc:

Description

Using the following filter used to force BuddyPress to avoid using gravatar and use local avatars by default

add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' );

This no longer works with BP 2.4.3 and WP 4.4.2

Change History (5)

#1 @dcavins
6 years ago

Thanks for your report.

This filter is working for me with BP 2.4.3 or 2.5.0 and WP 4.4.x. Can you add code like below (to your theme's functions file would be fine) to see if anything else is hooked to that filter?

function dc_wp_show_hooked_filters(){
  global $wp_filter;
  $filter_name = 'bp_core_fetch_avatar_no_grav';
  echo '<pre class="filter-dump">';
  var_dump( $wp_filter[$filter_name] );
  echo '</pre>';
}
add_action( 'wp_head', 'dc_wp_show_hooked_filters' );

#2 @r-a-y
6 years ago

  • Keywords reporter-feedback added; needs-patch removed

Filter is working fine for me as well.

#3 @henry.wright
6 years ago

I'm using the filter and it works OK for me too.

#4 @r-a-y
6 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed
  • Version 2.4.0 deleted

I'm going to close this one for now since no one in this thread was able to duplicate the problem.

Feel free to reopen, @maelga, if you are still experiencing the problem.

#5 @DJPaul
5 years ago

  • Component changed from API - Avatars to Media
Note: See TracTickets for help on using tickets.