[wp-trac] [WordPress Trac] #44008: wp_check_for_changed_slugs is not saving _wp_old_slug meta

WordPress Trac noreply at wordpress.org
Tue May 8 17:11:47 UTC 2018


#44008: wp_check_for_changed_slugs is not saving _wp_old_slug meta
--------------------------+-----------------------------
 Reporter:  chadreitsma   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Permalinks    |    Version:  4.9.5
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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
 <?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;
         }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44008>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list