diff --git forkSrcPrefix/src/wp-includes/class-wp-query.php forkDstPrefix/src/wp-includes/class-wp-query.php
index f683a52bd108011148b2c76c23dcc78bffc57067..373d677a1cf434f33b5099da697df06e43bfe505 100644
old
|
new
|
class WP_Query { |
2134 | 2134 | $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_title = %s", stripslashes( $q['title'] ) ); |
2135 | 2135 | } |
2136 | 2136 | |
| 2137 | // Set is_singular to false. |
| 2138 | if( '' === sanitize_title_for_query( $q['name'] ) && true === $this->is_singular && ! $this->is_preview ){ |
| 2139 | $this->is_singular = false; |
| 2140 | } |
| 2141 | |
2137 | 2142 | // Parameters related to 'post_name'. |
2138 | | if ( '' !== $q['name'] ) { |
| 2143 | if ( '' !== sanitize_title_for_query( $q['name'] ) ) { |
2139 | 2144 | $q['name'] = sanitize_title_for_query( $q['name'] ); |
2140 | 2145 | $where .= " AND {$wpdb->posts}.post_name = '" . $q['name'] . "'"; |
2141 | 2146 | } elseif ( '' !== $q['pagename'] ) { |