Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#44008 closed defect (bug) (duplicate)

wp_check_for_changed_slugs is not saving _wp_old_slug meta

Reported by: chadreitsma's profile chadreitsma Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.9.5
Component: Permalinks Keywords:
Focuses: Cc:


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???

// 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 ) ) {

Change History (1)

#1 @SergeyBiryukov
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @chadreitsma, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #4328.

Note: See TracTickets for help on using tickets.