wordpress-seo
wordpress-seo copied to clipboard
Check if post is not its own parent
Context
If any post is it's own parent (could be wrongly set in database) running indexing action will loop itself indefinitely.
Summary
changelog: bugfix
This PR can be summarized in the following changelog entry:
- Bugfix
Thanks for your contribution @skallet. Can you share the step-by-step guide to reproduce your PR so that we can deep dive in?
Most likely fixes the https://yoast.atlassian.net/browse/IM-1867
To replicate the issue, set any post in the database post_parent to post ID and run:
wp yoast index --allow-root --reindex
Without this PR, the command will not finish.
This is still an issue.
This is still an issue.
Hey @skallet, I'm currently working on this issue but I cannot reproduce the endless indexing behavior: could you share some more information about your setup (WP version, plugins activated, PHP version)? Thanks!