Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/02/2016 10:33:05 AM (6 years ago)
Author:
netweb
Message:

Cache: Allow a second parameter to be passed to bbp_clean_post_cache()

Following [5774] WP's clean_post_cache hook can pass both post ID and the post object, this changeset allows that second parmeter to be passed to bbp_clean_post_cache() and updates our add_action call to send both parameters.

Props thebrandonallen.
Fixes #2813.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/actions.php

    r6036 r6054  
    341341
    342342// Clean bbPress post caches when WordPress's is cleaned
    343 add_action( 'clean_post_cache', 'bbp_clean_post_cache' );
     343add_action( 'clean_post_cache', 'bbp_clean_post_cache', 10, 2 );
    344344
    345345/**
Note: See TracChangeset for help on using the changeset viewer.