debug-bar
1 year ago
3rd-party.php
1 year ago
amp.php
3 years ago
atomic.php
2 years ago
bbpress.php
3 years ago
beaverbuilder.php
1 year ago
bitly.php
3 years ago
buddypress.php
5 years ago
class-domain-mapping.php
2 years ago
class-jetpack-bbpress-rest-api.php
2 years ago
class.jetpack-amp-support.php
1 year ago
creative-mail.php
1 year ago
debug-bar.php
5 years ago
jetpack-backup.php
1 year ago
jetpack-boost.php
1 year ago
qtranslate-x.php
2 years ago
vaultpress.php
2 years ago
web-stories.php
1 year ago
woocommerce-services.php
1 year ago
woocommerce.php
1 year ago
wpcom-reader.php
2 years ago
wpml.php
5 years ago
buddypress.php
24 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 | add_filter( 'bp_core_pre_avatar_handle_upload', __NAMESPACE__ . '\blobphoto' ); |
| 11 | |
| 12 | /** |
| 13 | * Adds filters for skipping photon during pre_avatar_handle_upload. |
| 14 | * |
| 15 | * @param bool $bool Passthrough of filter's original content. No changes made. |
| 16 | * |
| 17 | * @return bool |
| 18 | */ |
| 19 | function blobphoto( $bool ) { |
| 20 | add_filter( 'jetpack_photon_skip_image', '__return_true' ); |
| 21 | |
| 22 | return $bool; |
| 23 | } |
| 24 |