Opened 3 years ago
Closed 3 years ago
#8873 closed defect (bug) (fixed)
Fatal error when the Activity Akismet history is empty (Single Activity WP Admin screen)
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 11.2.0 | Priority: | normal |
| Severity: | normal | Version: | 1.6 |
| Component: | Activity | Keywords: | has-patch |
| Cc: |
Description
PS: Aaron contacted me directly to alert me about this issue
@imath
There's a fatal error triggered by BP_Akismet::get_activity_history() about using usort() with a string. I guess this case happens because we are not checking the '_bp_akismet_history' activity meta exists and contains an array.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Into
BP_Akismet->get_activity_history()method, make sure the Activity meta used to store the Akismet history is an array before sorting with an Akismet comparison function.Trac ticket: https://buddypress.trac.wordpress.org/ticket/8873