Opened 2 years ago
Closed 2 years ago
#8727 closed defect (bug) (fixed)
452 failing tests due to wrong use of cache key
Reported by: | imath | Owned by: | imath |
---|---|---|---|
Milestone: | 11.0.0 | Priority: | high |
Severity: | major | Version: | |
Component: | Core | Keywords: | has-patch commit |
Cc: |
Description
I believe the reason is in WP's 53818 changeset. The WP Cache API is less permissive in WordPress 6.1 and throws "Unexpected incorrect usage notice" when the cache key is not an integer nor a not empty string.
After a analysing the 2 first failing tests it looks like it corresponds to:
- an activity comment created without the parent activity inside the test (not a regular usage).
- a group is created and the membership id is null for the creator at the time the
'groups_member_before_save'
hook is fired (regular usage)
I'm adding a first patch about it to illustrate the 2 fixes.
450 failing tests left to fix.. which is a lot!
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Well it was more impressive than critical 😅. .2.patch is fixing the issue.