buddypress/src/bp-activity
r-a-y 1c123d3f76 Activity: Fix issue with activity permalink access when the legacy activity query is enabled.
In #7113, we fixed a bug where anybody's activity item could be displayed
under a member profile.  The fix (r10880) does a strict type check on
`$activity->user_id`.

We expect `$activity->user_id` to be an integer, however it can be a
numeric string if the legacy activity query is enabled with:
`add_filter( 'bp_use_legacy_activity_query', '__return_true' );`

Since the check will always fail in this instance, members will not be able
to access activity permalinks.

We unfortunately missed this specific instance in r10853.

This commit addresses this problem.

See #6977. Fixes #7146 (2.6-branch).

git-svn-id: https://buddypress.svn.wordpress.org/branches/2.6@10907 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2016-06-28 05:24:26 +00:00
..
admin Admin, Activity: fix missing comment count bubble on Activity admin screen. 2015-10-07 14:12:26 +00:00
classes Activity: Fix issue with activity permalink access when the legacy activity query is enabled. 2016-06-28 05:24:26 +00:00
css Apply RTLCSS to stylesheets. 2016-05-25 16:38:17 +00:00
js Activity: make the at-mentions UI work for a wider range of TinyMCE instance, not just wp-admin's Visual Editor. 2016-05-12 18:21:44 +00:00
bp-activity-actions.php Remove redundant @uses PHPDoc tag from inline documentation. 2016-05-29 18:12:08 +00:00
bp-activity-admin.php Add translator comments for screen reader text in admin. 2016-06-12 21:12:49 +00:00
bp-activity-adminbar.php Add an 'Edit Activity' toolbar link when viewing a single activity. 2016-04-27 16:06:54 +00:00
bp-activity-akismet.php Autoload BuddyPress classes. 2016-03-10 19:45:07 +00:00
bp-activity-cache.php More docs cleanup and @since additions. 2016-01-18 07:34:34 +00:00
bp-activity-classes.php Embeds: Use version_compare() instead of a direct operator check. 2016-06-01 16:27:58 +00:00
bp-activity-cssjs.php Fix script/style enqueue path when using BP dev. repo. with release build of WP, and SCRIPT_DEBUG=false. 2016-02-18 11:10:33 +00:00
bp-activity-embeds.php Activity Embeds: Move CSS files to bp-legacy's /css/ folder. 2016-06-15 22:04:00 +00:00
bp-activity-filters.php Activity: Set WP error if activity content hits a moderation filter. 2016-06-01 21:23:09 +00:00
bp-activity-functions.php Activity: Move activity anchor addition from bp_get_activity_comment_permalink() to bp_get_activity_permalink(). 2016-06-22 21:10:09 +00:00
bp-activity-loader.php Autoload BuddyPress classes. 2016-03-10 19:45:07 +00:00
bp-activity-notifications.php Activity: Fine-tune activity reply screen notifications when activity stream commenting is enabled. 2016-06-22 21:17:23 +00:00
bp-activity-screens.php Activity: Ensure that single activity pages are only rendered from the activity author's page. 2016-06-12 19:18:31 +00:00
bp-activity-template.php Activity: Move activity anchor addition from bp_get_activity_comment_permalink() to bp_get_activity_permalink(). 2016-06-22 21:10:09 +00:00