WordPress.org

Make WordPress Core

Ticket #37653: query.patch

File query.patch, 426 bytes (added by Guss77, 5 years ago)

Hack that workaround the problem for me. I don't think its a coorect solution - the right thing is probably to run WP_Query::query() always, regardless of the query string content

  • query.

    old new  
    44564456                        return true;
    44574457                elseif ( 'page' == get_option( 'show_on_front') && get_option( 'page_on_front' ) && $this->is_page( get_option( 'page_on_front' ) ) )
    44584458                        return true;
     4459                elseif ( empty($this->query) )
     4460                        return true; // it is always the front page without a query
    44594461                else
    44604462                        return false;
    44614463        }