WordPress.org

Make WordPress Core

Changeset 18330


Ignore:
Timestamp:
06/23/11 16:35:34 (4 years ago)
Author:
ryan
Message:

Don't attempt old slug redirect for multi-post_type queries. Props aaroncampbell. see #16949

File:
1 edited

Legend:

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

    r18268 r18330  
    34943494            $post_type = 'post'; 
    34953495 
     3496        if ( is_array( $post_type ) ) { 
     3497            if ( count( $post_type ) > 1 ) 
     3498                return; 
     3499            $post_type = array_shift( $post_type ); 
     3500        } 
     3501 
    34963502        // Do not attempt redirect for hierarchical post types 
    34973503        if ( is_post_type_hierarchical( $post_type ) ) 
Note: See TracChangeset for help on using the changeset viewer.