diff --git a/wp-includes/canonical.php b/wp-includes/canonical.php
index 36ff320..ca164f1 100644
|
a
|
b
|
function redirect_guess_404_permalink() { |
| 665 | 665 | |
| 666 | 666 | // if any of post_type, year, monthnum, or day are set, use them to refine the query |
| 667 | 667 | if ( get_query_var( 'post_type' ) ) { |
| 668 | | $where .= $wpdb->prepare( ' AND post_type = %s', get_query_var( 'post_type' ) ); |
| | 668 | if ( is_array( get_query_var( 'post_type' ) ) ) { |
| | 669 | $where .= " AND post_type IN ('" . implode( "', '", get_query_var('post_type') ) . "')"; |
| | 670 | } else { |
| | 671 | $where .= $wpdb->prepare(" AND post_type = %s", get_query_var('post_type')); |
| | 672 | } |
| 669 | 673 | } else { |
| 670 | 674 | $where .= " AND post_type IN ('" . implode( "', '", get_post_types( array( 'public' => true ) ) ) . "')"; |
| 671 | 675 | } |