Keine Beschreibung

buddypress.php 503B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * 3rd Party Integration for BuddyPress.
  4. *
  5. * @package automattic/jetpack.
  6. */
  7. namespace Automattic\Jetpack\Third_Party;
  8. add_filter( 'bp_core_pre_avatar_handle_upload', __NAMESPACE__ . '\blobphoto' );
  9. /**
  10. * Adds filters for skipping photon during pre_avatar_handle_upload.
  11. *
  12. * @param bool $bool Passthrough of filter's original content. No changes made.
  13. *
  14. * @return bool
  15. */
  16. function blobphoto( $bool ) {
  17. add_filter( 'jetpack_photon_skip_image', '__return_true' );
  18. return $bool;
  19. }