diff --git forkSrcPrefix/src/wp-includes/class-wp-query.php forkDstPrefix/src/wp-includes/class-wp-query.php
index f683a52bd108011148b2c76c23dcc78bffc57067..5471d9a9102f5e7de0869090e1e56e0612368449 100644
old
|
new
|
class WP_Query { |
2135 | 2135 | } |
2136 | 2136 | |
2137 | 2137 | // Parameters related to 'post_name'. |
| 2138 | if( '' === sanitize_title_for_query( $q['name'] ) && true === $this->is_singular ){ |
| 2139 | $this->is_singular = false; |
| 2140 | } |
2138 | 2141 | if ( '' !== $q['name'] ) { |
2139 | 2142 | $q['name'] = sanitize_title_for_query( $q['name'] ); |
2140 | 2143 | $where .= " AND {$wpdb->posts}.post_name = '" . $q['name'] . "'"; |