We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d66cdb2 commit f880327Copy full SHA for f880327
src/wp-includes/class-wp-query.php
@@ -1105,9 +1105,7 @@ public function parse_query( $query = '' ) {
1105
1106
if ( $query_vars['page_id'] ) {
1107
if ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) == $query_vars['page_id'] ) {
1108
- if ( $qv['page_id'] ) {
1109
- if ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) == $qv['page_id'] ) {
1110
- $posts_page = get_post( $this->queried_object_id );
+ $posts_page = get_post( $query_vars['page_id'] );
1111
if ( ! $posts_page || 'publish' !== $posts_page->post_status ) {
1112
$this->set_404();
1113
return;
0 commit comments