[buddypress-trac] [BuddyPress Trac] #8619: Undefined variable when handle avatar crop

buddypress-trac noreply at wordpress.org
Thu Jan 20 19:54:16 UTC 2022


#8619: Undefined variable when handle avatar crop
--------------------------+---------------------
 Reporter:  oztaser       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  10.1.0
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+---------------------

Comment (by oztaser):

 {{{
 diff --git a/src/bp-members/screens/change-avatar.php b/src/bp-
 members/screens/change-avatar.php
 index 6a421ec77..8a64dd95e 100644
 --- a/src/bp-members/screens/change-avatar.php
 +++ b/src/bp-members/screens/change-avatar.php
 @@ -62,7 +62,7 @@ function bp_members_screen_change_avatar() {
                 );

                 // Handle crop.
 -               $cropped_avatar = bp_core_avatar_handle_crop( $r, 'array'
 );
 +               $cropped_avatar = bp_core_avatar_handle_crop( $args,
 'array' );

                 if ( ! $cropped_avatar ) {
                         bp_core_add_message( __( 'There was a problem
 cropping your profile photo.', 'buddypress' ), 'error' );
 }}}

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


More information about the buddypress-trac mailing list