Created
January 7, 2014 21:07
-
-
Save paulgibbs/8306927 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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