Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2024 10:25:18 PM (2 years ago)
Author:
espellcaste
Message:

WPCS: Part IV: miscellaneous fixes for some of the files of the core component.

Follow-up to [13883], [13886], and [13887]

See #9164 and #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-members-suggestions.php

    r13372 r13888  
    3939        );
    4040
    41 
    4241        /**
    4342         * Validate and sanitise the parameters for the suggestion service query.
    … …  
    5857                 * @param BP_Members_Suggestions $suggestions Current BP_Members_Suggestions instance.
    5958                 */
    60                 $this->args                 = apply_filters( 'bp_members_suggestions_args', $this->args, $this );
     59                $this->args = apply_filters( 'bp_members_suggestions_args', $this->args, $this );
    6160
    6261                // Check for invalid or missing mandatory parameters.
    … …  
    113112                }
    114113
    115 
    116114                $user_query = new BP_User_Query( $user_query );
    117115                $results    = array();
    … …  
    120118                        $result          = new stdClass();
    121119                        $result->ID      = $user->user_nicename;
    122                         $result->image   = bp_core_fetch_avatar( array( 'html' => false, 'item_id' => $user->ID ) );
     120                        $result->image   = bp_core_fetch_avatar(
     121                                array(
     122                                        'html'    => false,
     123                                        'item_id' => $user->ID,
     124                                )
     125                        );
    123126                        $result->name    = bp_core_get_user_displayname( $user->ID );
    124127                        $result->user_id = $user->ID;
Note: See TracChangeset for help on using the changeset viewer.