[buddypress-trac] [BuddyPress Trac] #8240: Data handling issue with `BP_Akismet::get_activity_history()`

buddypress-trac noreply at wordpress.org
Thu Feb 20 16:06:41 UTC 2020


#8240: Data handling issue with `BP_Akismet::get_activity_history()`
--------------------------+-----------------------------
 Reporter:  stephdau      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  (not sure)    |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 In https://wordpress.org/support/topic/buddypress-activity-and-akismet/, a
 BP / Akismet user is reporting some warnings being displayed oin screen as
 a result of `BP_Akismet::get_activity_history()`:


 {{{
 Warning: usort() expects parameter 1 to be array, string given in
 …/httpdocs/wp-content/plugins/buddypress/bp-activity/classes/class-bp-
 akismet.php on line 660
 }}}

 It seems the user is getting `$history` as not `=== false`, but not in the
 expected array format `usort()` can deal with after.

 I will ask the user if he can comment here with maybe some data examples,
 `var_dump()` samples, etc..

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


More information about the buddypress-trac mailing list