debug-bar
3 months ago
3rd-party.php
1 month ago
activitypub.php
1 month ago
amp.php
7 months ago
atomic.php
7 months ago
bbpress.php
7 months ago
beaverbuilder.php
7 months ago
bitly.php
7 months ago
buddypress.php
7 months ago
class-domain-mapping.php
7 months ago
class-jetpack-bbpress-rest-api.php
2 years ago
class.jetpack-amp-support.php
4 months ago
creative-mail.php
7 months ago
debug-bar.php
7 months ago
jetpack-backup.php
7 months ago
jetpack-boost.php
7 months ago
qtranslate-x.php
7 months ago
vaultpress.php
1 week ago
web-stories.php
7 months ago
woocommerce-services.php
7 months ago
woocommerce.php
7 months ago
wpcom-reader.php
7 months ago
wpml.php
7 months ago
buddypress.php
28 lines
| 1 | <?php |
| 2 | /** |
| 3 | * 3rd Party Integration for BuddyPress. |
| 4 | * |
| 5 | * @package automattic/jetpack. |
| 6 | */ |
| 7 | |
| 8 | namespace Automattic\Jetpack\Third_Party; |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit( 0 ); |
| 12 | } |
| 13 | |
| 14 | add_filter( 'bp_core_pre_avatar_handle_upload', __NAMESPACE__ . '\blobphoto' ); |
| 15 | |
| 16 | /** |
| 17 | * Adds filters for skipping photon during pre_avatar_handle_upload. |
| 18 | * |
| 19 | * @param bool $bool Passthrough of filter's original content. No changes made. |
| 20 | * |
| 21 | * @return bool |
| 22 | */ |
| 23 | function blobphoto( $bool ) { |
| 24 | add_filter( 'jetpack_photon_skip_image', '__return_true' ); |
| 25 | |
| 26 | return $bool; |
| 27 | } |
| 28 |