Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jetpack: Photon: Prevent avatars from loading from Photon on avatar chan... #122

Merged
merged 1 commit into from
Jan 23, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions 3rd-party/3rd-party.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

/*
* Placeholder to load 3rd party plugin tweaks until a legit system
* is architected
*/

require_once( 'buddypress.php' );
9 changes: 9 additions & 0 deletions 3rd-party/buddypress.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

add_filter( 'bp_core_pre_avatar_handle_upload', 'blobphoto' );
function blobphoto( $bool ) {

add_filter( 'jetpack_photon_skip_image', '__return_true' );

return $bool;
}
2 changes: 2 additions & 0 deletions jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,5 @@
Jetpack_Sync::sync_options( __FILE__, 'db_version', 'jetpack_active_modules', 'active_plugins' );
}
*/

require_once( JETPACK__PLUGIN_DIR . '3rd-party/3rd-party.php' );