Opened 7 years ago
Closed 7 years ago
#44008 closed defect (bug) (duplicate)
wp_check_for_changed_slugs is not saving _wp_old_slug meta
Reported by: | chadreitsma | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.9.5 |
Component: | Permalinks | Keywords: | |
Focuses: | Cc: |
Description
Example: Old slugs for a published page are not being saved in the meta table.
It seems the conditional statement below is returning true due to is_post_type_hierarchical returning 1. Is this correct???
<?php // We're only concerned with published, non-hierarchical objects. if ( ! ( 'publish' === $post->post_status || ( 'attachment' === get_post_type( $post ) && 'inherit' === $post->post_status ) ) || is_post_type_hierarchical( $post->post_type ) ) { return; }
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hi @chadreitsma, welcome to WordPress Trac!
Thanks for the report, we're already tracking this issue in #4328.