WordPress.org

Make WordPress Core

Ticket #16949: 16949.diff

File 16949.diff, 498 bytes (added by aaroncampbell, 7 years ago)

Don't attempt old slug redirect for multi-post_type queries

  • wp-includes/query.php

     
    34933493                else
    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 ) )
    34983504                        return;