Skip to:
Content

BuddyPress.org

Ticket #6141: 6141.patch

File 6141.patch, 579 bytes (added by imath, 10 years ago)
  • src/bp-activity/bp-activity-template.php

    diff --git src/bp-activity/bp-activity-template.php src/bp-activity/bp-activity-template.php
    index b2f8036..2bdecca 100644
    function bp_has_activities( $args = '' ) { 
    541541        $object      = false;
    542542        $primary_id  = false;
    543543
     544        // Make sure all activity actions are set while doing Ajax
     545        if ( defined( 'DOING_AJAX' ) && true === (bool) DOING_AJAX ) {
     546                bp_activity_get_actions();
     547        }
     548
    544549        // User filtering
    545550        if ( bp_displayed_user_id() )
    546551                $user_id = bp_displayed_user_id();