Skip to content

Instantly share code, notes, and snippets.

@paulgibbs
Created January 7, 2014 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulgibbs/8306927 to your computer and use it in GitHub Desktop.
Save paulgibbs/8306927 to your computer and use it in GitHub Desktop.
<?php
function jetpack_buddypress_tweaks() {
if ( ! bp_is_user_change_avatar() && ! bp_is_group_admin_page( 'group-avatar' ) )
return;
add_filter( 'jetpack_photon_override_image_downsize', '__return_true' );
}
// This action is called by BuddyPress on "wp" at priority 10. If it's called, you can assume BP is loaded, but remember that a particular component might not be loaded -- you need to check if anything else is added here in the future.
add_action( 'bp_ready', 'jetpack_buddypress_tweaks' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment