Skip to:
Content

BuddyPress.org

Changeset 13220


Ignore:
Timestamp:
01/24/2022 08:54:20 PM (4 years ago)
Author:
imath
Message:

Members: make sure pre-2.3 avatar crop handler is using the right args

Before BuddyPress 2.3 was released, the xprofile_screen_change_avatar() screen handler (which has been deprecated in favor of the bp_members_screen_change_avatar() in version 6.0) used to process the avatar crop using an array built out of posted variables. During the 6.0 deprecation process, this variable has been wrongly named $r instead of $args. This commit is replacing the wrong variable name by the right one.

Props oztaser

See #8619 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/screens/change-avatar.php

    r13177 r13220  
    6363
    6464        // Handle crop.
    65         $cropped_avatar = bp_core_avatar_handle_crop( $r, 'array' );
     65        $cropped_avatar = bp_core_avatar_handle_crop( $args, 'array' );
    6666
    6767        if ( ! $cropped_avatar ) {
Note: See TracChangeset for help on using the changeset viewer.