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
This is an edge case caused by a post without an author specified or an author with the display name set to ''.
The DistributorPost::get_author_name() method is used by the author replacement hook and doesn't allow for the use case of an empty author display name. When running on the replacment hook, it triggers an infinite loop.
We're not seeing it in the E2E tests as the author display name is specified, I'm seeing it locally because I'm generating posts with wp post generate which produces posts without an author specified.
An empty display name is an edge case but probably something we should account for.
Describe the bug
The post list can go in an infinite loop if the author replacement option is set.
A git bisect suggests it's following the merge of #1035 but it's possibly an interaction with a subsequently merged PR as the failure is intermittent.
Steps to Reproduce
develop
branchScreenshots, screen recording, code snippet
Environment information
No response
WordPress information
Site info
Code of Conduct
The text was updated successfully, but these errors were encountered: