Skip to:
Content

BuddyPress.org

Changeset 13573


Ignore:
Timestamp:
08/27/2023 10:51:29 AM (16 months ago)
Author:
imath
Message:

Edit action hooks about clearing the Object types cache

2 is the right parameters number the function bp_clear_object_type_terms_cache() needs to receive from these action hooks.

Fixes #8983
Closes https://github.com/buddypress/buddypress/pull/156

File:
1 edited

Legend:

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

    r13407 r13573  
    420420    wp_cache_delete( $taxonomy, 'bp_object_terms' );
    421421}
    422 add_action( 'bp_type_inserted', 'bp_clear_object_type_terms_cache' );
    423 add_action( 'bp_type_updated', 'bp_clear_object_type_terms_cache' );
    424 add_action( 'bp_type_deleted', 'bp_clear_object_type_terms_cache' );
     422add_action( 'bp_type_inserted', 'bp_clear_object_type_terms_cache', 10, 2 );
     423add_action( 'bp_type_updated', 'bp_clear_object_type_terms_cache', 10, 2 );
     424add_action( 'bp_type_deleted', 'bp_clear_object_type_terms_cache', 10, 2 );
    425425
    426426/**
Note: See TracChangeset for help on using the changeset viewer.