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: | mystichrome | Owned by: | imath |
|---|---|---|---|
| Priority: | normal | Milestone: | 11.2.0 |
| Component: | Activity | Version: | 1.6 |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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