Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/31/2023 03:38:36 PM (2 years ago)
Author:
dcavins
Message:

Update bp_view capability check.

Ensure that the bp_view capability check is using the
correct structure when checking the $args variable .

See #8734.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-caps.php

    r13531 r13540  
    145145
    146146                // A BuddyPress component ID may be optionally passed with the `bp_view` check.
    147                 $component = isset( $args['bp_component'] ) ? $args['bp_component'] : '';
     147                $component = isset( $args[0]['bp_component'] ) ? $args[0]['bp_component'] : '';
    148148
    149149                if ( 'members' === bp_get_community_visibility( $component ) ) {
Note: See TracChangeset for help on using the changeset viewer.