Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/03/2023 08:19:48 PM (2 years 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
See #8800 (Trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/bp-blogs/bp-blogs-template.php ΒΆ

    r13405 r13409  
    15951595         * @param array $button_args Array of arguments to be used for the button to visit a blog.
    15961596         */
    1597         return apply_filters( 'bp_get_blogs_visit_blog_button', $button_args );
     1597        return (array) apply_filters( 'bp_get_blogs_visit_blog_button', $button_args );
    15981598    }
    15991599
Note: See TracChangeset for help on using the changeset viewer.