[buddypress-trac] [BuddyPress Trac] #6763: Avatar Photo Doesn't Show in Image Cropper with Lazy Load plugin activated

buddypress-trac noreply at wordpress.org
Mon Dec 14 18:40:41 UTC 2015


#6763: Avatar Photo Doesn't Show in Image Cropper with Lazy Load plugin activated
----------------------------------+----------------------
 Reporter:  brianbws              |       Owner:
     Type:  defect (bug)          |      Status:  closed
 Priority:  normal                |   Milestone:
Component:  Component - XProfile  |     Version:
 Severity:  normal                |  Resolution:  invalid
 Keywords:                        |
----------------------------------+----------------------

Comment (by brianbws):

 Yeah, I've been using a workaround, but it's not a solution. Was hoping
 for a better way.

 {{{#!php
 <?php
 /* turn off lazy load on avatar uplaod page */
 add_filter( 'lazyload_is_enabled',
 'bws_turn_off_lazyload_on_avatar_upload' );
 function bws_turn_off_lazyload_on_avatar_upload( $enabled ) {
   if ( bp_is_change_avatar() || bp_is_group_admin_screen( 'group-avatar' )
 )
     $enabled = false;
   return $enabled;
 }
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6763#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list