Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/16/2015 10:02:01 AM (10 years ago)
Author:
djpaul
Message:

Activity: make sure activity actions are set when creating activity objects.

We can't assume it will already be set because this is normally only done on an ad-hoc basis.
Running certain unit tests in isolation revealed this issue.

Fixes #6126, props imath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-classes.php

    r9351 r9366  
    162162            $this->is_spam           = $row->is_spam;
    163163        }
     164
     165        /**
     166         * Make sure the activity actions have been registered.
     167         * We can't assume it will already be set because this is normally only done on an ad-hoc basis.
     168         *
     169         * @link https://buddypress.trac.wordpress.org/ticket/6126
     170         */
     171        bp_activity_get_actions();
    164172
    165173        // Generate dynamic 'action' when possible
Note: See TracChangeset for help on using the changeset viewer.