Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/29/2020 08:18:53 PM (19 months ago)
Author:
imath
Message:

BP Templates: stop using deprecated function arguments

Changes were made as part of r12429 to deprecate the usage of function arguments for the groups_send_membership_request() function.

Some parts of our codebase (mainly in our Template packs) were still using these deprecated arguments.

This commit makes sure we are using the most recent arguments when using this function.

Props r-a-y, N33D

See #8298 (branch 6.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0/src/bp-templates/bp-nouveau/includes/groups/ajax.php

    r12501 r12671  
    190190
    191191            case 'groups_request_membership' :
    192                 if ( ! groups_send_membership_request( bp_loggedin_user_id(), $group->id ) ) {
     192                if ( ! groups_send_membership_request( [ 'user_id' => bp_loggedin_user_id(), 'group_id' => $group->id ] ) ) {
    193193                    $response = array(
    194194                        'feedback' => sprintf(
Note: See TracChangeset for help on using the changeset viewer.