Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #7146


Ignore:
Timestamp:
06/28/2016 05:11:20 AM (10 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7146 – Description

    initial v1  
    11In #7113, we fixed a bug where anybody's activity item could be displayed under a member profile.
    22
    3 However, due to the strict activity ID check here, this broke:
     3However, due to the strict activity user ID check for the fix, this broke activity permalink access on some installs:
    44https://buddypress.trac.wordpress.org/browser/tags/2.6.0/src/bp-activity/bp-activity-screens.php?marks=253#L252
    55
    6 `$activity->user_id` is a string in some instances.
     6`$activity->user_id` is a string when the older `'bp_use_legacy_activity_query'` filter is set to true via a plugin.
    77
    8 #6977 marks ongoing work to cast all our numeric strings as integers.  r10853 missed an instance in the older, legacy activity in `BP_Activity_Activity::get()`, which caused the problem.
     8#6977 marks ongoing work to cast all our numeric strings as integers.  r10853 missed an integer casting instance in the older, legacy activity query, which caused the problem.
    99
    1010Attached patch fixes this up.