WordPress.org

Make WordPress Core

Ticket #29660: 29660.diff

File 29660.diff, 439 bytes (added by boonebgorges, 6 years ago)
  • src/wp-includes/query.php

    diff --git src/wp-includes/query.php src/wp-includes/query.php
    index 5c1c97c..3015509 100644
    class WP_Query { 
    43054305         * @return bool True, if front of site.
    43064306         */
    43074307        public function is_front_page() {
     4308                if ( $this->is_feed ) {
     4309                        return false;
     4310                }
     4311
    43084312                // most likely case
    43094313                if ( 'posts' == get_option( 'show_on_front') && $this->is_home() )
    43104314                        return true;