Skip to:
Content

BuddyPress.org

Changeset 13124


Ignore:
Timestamp:
10/10/2021 04:33:20 AM (2 years ago)
Author:
imath
Message:

Improve "bp_{$this->id}_admin_directory_states" filter's context

Include the $post parameter as the second parameter of this filter.

Props Offereins

Fixes #8470

File:
1 edited

Legend:

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

    r13123 r13124  
    10111011             *
    10121012             * @param string[] $states An array of post display states.
     1013             * @param WP_Post  $post   The current post object.
    10131014             */
    1014             return apply_filters( 'bp_' . $this->id . '_admin_directory_states', $states );
     1015            return apply_filters( 'bp_' . $this->id . '_admin_directory_states', $states, $post );
    10151016        }
    10161017
Note: See TracChangeset for help on using the changeset viewer.