WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/08/2010 09:10:38 PM (10 years ago)
Author:
markjaquith
Message:

Do not do slug logging/redirects for hierarchical post types. see #15140

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r16787 r16818  
    40254025        return;
    40264026
    4027     // we're only concerned with published objects
    4028     if ( $post->post_status != 'publish' )
     4027    // we're only concerned with published, non-hierarchical objects
     4028    $ptype_obj = get_post_type_object( $post->post_type );
     4029    if ( $post->post_status != 'publish' || !$ptype_obj || $ptype_obj->hierarchical )
    40294030        return;
    40304031
Note: See TracChangeset for help on using the changeset viewer.