Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#44008 closed defect (bug) (duplicate)

wp_check_for_changed_slugs is not saving _wp_old_slug meta

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

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)

#1 @SergeyBiryukov
9 years ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → 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.