Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/08/2024 01:42:55 AM (13 months ago)
Author:
imath
Message:

Only parse heartbeat requests which relates to BuddyPress context

Props Slaffik, needle, espellcaste

Fixes #9099 (branch 12.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/12.0/src/bp-core/bp-core-template-loader.php

    r13736 r13753  
    620620    }
    621621
     622    if ( isset( $_POST['action'] ) && 'heartbeat' === $_POST['action'] && empty( $_POST['data']['bp_heartbeat'] ) ) {
     623        return;
     624    }
     625
    622626    // Prevent doing this again.
    623627    remove_action( 'parse_query', 'bp_parse_ajax_referer_query', 2 );
Note: See TracChangeset for help on using the changeset viewer.