Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/17/2015 10:25:41 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Prefer current_filter() over current_action() to maintain compatibility with WordPress versions older than 3.9. Fixes #2529.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/functions.php

    r5859 r5866  
    930930            // Make every effort to get topic id
    931931            // https://bbpress.trac.wordpress.org/ticket/2529
    932             if ( empty( $topic_id ) && ( current_action() === 'bbp_deleted_reply' ) ) {
     932            if ( empty( $topic_id ) && ( current_filter() === 'bbp_deleted_reply' ) ) {
    933933                $topic_id = get_post_field( 'post_parent', $reply_id );
    934934            }
Note: See TracChangeset for help on using the changeset viewer.