buddypress/tests/phpunit
r-a-y 429edcc2ce Activity: Add parameter to bp_activity_get_comment_depth().
Previously, `bp_activity_get_comment_depth()` only supported looking for an
activity comment's depth during a queried activity comment loop.

This commit allows a developer to pass either a comment object or an
activity ID to the function so the activity comment depth can be fetched
outside the activity comment loop.

This fixes an issue with a notice displaying in the BuddyPress Activity
admin dashboard.

See #7329.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@11413 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2017-02-06 19:26:44 +00:00
..
assets Groups: Make sure BP_Group_Extension::widget_display() can be used 2016-06-27 03:07:47 +00:00
includes Fix incorrect remove_action and remove_filter usage for WordPress 4.7. 2016-11-28 22:33:55 +00:00
testcases Activity: Add parameter to bp_activity_get_comment_depth(). 2017-02-06 19:26:44 +00:00
bootstrap.php Tests: new base class for BP_Email tests. 2016-02-06 19:26:09 +00:00
codecoverage.xml Travis-CI: disable xdebug globally and switch travis:codecoverage to use xdebug instead of phpdbg. 2016-08-08 13:36:32 +00:00
multisite.xml Grunt: move phpUnit tests into new, top-level tests folder. 2014-05-04 12:57:55 +00:00