mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 12:00:03 +01:00
When inserting a term from a non-existing taxonomy as a nav item, the `post_title` property should be empty, and the function should not throw a fatal error for `wp_specialchars_decode()`. Includes bringing some consistency to similar checks for post types and post type archives in the same code fragment. Follow-up to [14283], [14450], [35382], [36095]. Props dd32, narenin, mukesh27, SergeyBiryukov. Fixes #61799. git-svn-id: https://develop.svn.wordpress.org/trunk@58854 602fd350-edb4-49c9-b593-d223f7449a82