wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

If child category linked to nonexistant parent category id urls are wrong in sitemap

Open shawnlunny opened this issue 11 years ago • 1 comments

yoast

Background: I found an interesting wordpress bug while troubleshooting the following issue. In wordpress core if a child category is mislinked (something happened where the parent term id changed in the DB?) then you cannot see the child category in the site category list in admin. You can however search for the category and find it in the admin

At first I did not realize this and decided to see if the "missing" child category was in the sitemap list and this is what I found (see attachment).

As an aside I need to report the mislinked child category issue to core as there are many unanswered threads around "missing" categories.

shawnlunny avatar Jul 27 '15 18:07 shawnlunny

I don't think there is anything we can do about it in scope of our plugin. If API returns us a certain category and certain URL for it we implicitly trust it. If sanity of WP API result is under question there isn't really anything we can (would) rely on to double check it.

Rarst avatar Apr 05 '16 10:04 Rarst