Skip to:
Content

BuddyPress.org

Changeset 13526


Ignore:
Timestamp:
07/26/2023 05:29:26 AM (14 months ago)
Author:
imath
Message:

Add BP Rewrites API support to Activities auto-refreshing feature

Do register the heatbeat Ajax action into the buddypress()->ajax_actions global. This registration was missed during the BP Rewrites migrating process.

See #4954
Fixes #8954
Closes https://github.com/buddypress/buddypress/pull/139

Location:
trunk/src/bp-templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r13520 r13526  
    189189            add_action( 'wp_ajax_nopriv_' . $name, $function );
    190190        }
     191
     192        // Register the heartbeat Ajax action.
     193        bp_ajax_register_action( 'heartbeat' );
    191194
    192195        add_filter( 'bp_ajax_querystring', 'bp_legacy_theme_ajax_querystring', 10, 2 );
  • trunk/src/bp-templates/bp-nouveau/includes/activity/functions.php

    r13503 r13526  
    564564 */
    565565function bp_nouveau_register_activity_ajax_actions() {
    566     $ajax_actions = array( 'activity_filter', 'get_single_activity_content', 'activity_mark_fav', 'activity_mark_unfav', 'activity_clear_new_mentions', 'delete_activity', 'new_activity_comment', 'bp_nouveau_get_activity_objects', 'post_update', 'bp_spam_activity' );
     566    $ajax_actions = array( 'activity_filter', 'get_single_activity_content', 'activity_mark_fav', 'activity_mark_unfav', 'activity_clear_new_mentions', 'delete_activity', 'new_activity_comment', 'bp_nouveau_get_activity_objects', 'post_update', 'bp_spam_activity', 'heartbeat' );
    567567
    568568    foreach ( $ajax_actions as $ajax_action ) {
Note: See TracChangeset for help on using the changeset viewer.