[buddypress-trac] [BuddyPress Trac] #7146: Activity permalink access doesn't work with legacy activity query

buddypress-trac noreply at wordpress.org
Tue Jun 28 05:02:59 UTC 2016


#7146: Activity permalink access doesn't work with legacy activity query
--------------------------+-----------------------
 Reporter:  r-a-y         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  2.6.1
Component:  Activity      |    Version:  2.6.0
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 In #7113, we fixed a bug where anybody's activity item could be displayed
 under a member profile.

 However, due to the strict activity ID check here, this broke:
 https://buddypress.trac.wordpress.org/browser/tags/2.6.0/src/bp-activity
 /bp-activity-screens.php?marks=253#L252

 `$activity->user_id` is a string in some instances.

 #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.

 Attached patch fixes this up.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7146>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list