Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disable Jetpack Photon in Buddypress Avatar Upload

  • @undergroundnetwork

    Participant

    I am running WordPress 3.8 and Buddypress 1.9 and Jetpack Photon to CDN my images. Unfortunately, Photon breaks the ability to upload Avatars in Buddypress.

    I found a filter jetpack_photon_override_image_downsize in Photon that allows me to deactivate Photon on the fly, and the following function works if I put it in the bp-custom.php:

    
    function remove_jetpack_image_downsize() {
    	return true;
    }
    add_filter('jetpack_photon_override_image_downsize', 'remove_jetpack_image_downsize');
    

    I was going to further the filter to only stop photon on Avatar edit pages like:

    
    function remove_jetpack_image_downsize() {
    	if ( bp_is_group_admin_page( 'group-avatar' ) )
    		return true;
    	else
           return false;
    }
    add_filter('jetpack_photon_override_image_downsize', 'remove_jetpack_image_downsize');
    

    Unfortunately, in both cases, the filter is working BUT it only stops Photon for the REST of the WordPress site EXCEPT for all Buddypress pages!

    How do I get a plugin filter to work on the Buddypress side as well? Or is this a Jetpack Photon issue?

    Thanks so much!

    Charles

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Disable Jetpack Photon in Buddypress Avatar Upload’ is closed to new replies.
Skip to toolbar