You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Plugin class is namespaced under the MultipleAuthors namespace. When the cache is flushed, if there is an error finding a co-author, a new WP_Error is returned. Since the WP_Error is not namespaced, the site crashes with a fatal error:
Expected Behavior
Current Behavior
The Plugin class is namespaced under the
MultipleAuthors
namespace. When the cache is flushed, if there is an error finding a co-author, a new WP_Error is returned. Since the WP_Error is not namespaced, the site crashes with a fatal error:Possible Solution
Simple fix! :) Change that line to
return new \WP_Error(...
Steps to Reproduce (for bugs)
In theory you can reproduce it by calling:
If you're trying to reproduce it on a live site and not just in code, it looks like you need to add this filter to trigger the flush
Context
When removing multi-authors from posts, clients were reporting that the Save crashed with an "Updating failed" error and authors did not get removed.
Your Environment
The text was updated successfully, but these errors were encountered: