Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/03/2023 08:34:14 PM (22 months ago)
Author:
imath
Message:

Prevent a Members single view header action button filters wrong use

Some custom code/plugins might wrongly use something else than an array
(eg: false) to disable one of the action buttons shown inside the single
Members view header. Changes made during the 11.0.0 release revealed this
potential issue.

See #7126
Closes https://github.com/buddypress/buddypress/pull/59
Fixes #8800 (branch 11.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/11.0/src/bp-friends/bp-friends-template.php

    r13336 r13410  
    458458         * @since 1.1.0
    459459         *
    460          * @param string $button_args Button arguments for add friend button.
    461          */
    462         return apply_filters( 'bp_get_add_friend_button', $button_args );
     460         * @param array $button_args Button arguments for add friend button.
     461         */
     462        return (array) apply_filters( 'bp_get_add_friend_button', $button_args );
    463463    }
    464464
Note: See TracChangeset for help on using the changeset viewer.