diff --git src/wp-includes/query.php src/wp-includes/query.php
index c5c1ae6..b6691ec 100644
|
|
class WP_Query { |
4497 | 4497 | */ |
4498 | 4498 | public function is_front_page() { |
4499 | 4499 | // most likely case |
4500 | | if ( 'posts' == get_option( 'show_on_front') && $this->is_home() ) |
| 4500 | if ( 'posts' == get_option( 'show_on_front') && $this->is_home() ) { |
4501 | 4501 | return true; |
4502 | | elseif ( 'page' == get_option( 'show_on_front') && get_option( 'page_on_front' ) && $this->is_page( get_option( 'page_on_front' ) ) ) |
4503 | | return true; |
4504 | | else |
| 4502 | } elseif ( 'page' == get_option( 'show_on_front') ) { |
| 4503 | if ( ! get_option( 'page_on_front' ) ) { |
| 4504 | return $this->is_home(); |
| 4505 | } else { |
| 4506 | return $this->is_page( get_option( 'page_on_front' ) ); |
| 4507 | } |
| 4508 | } else { |
4505 | 4509 | return false; |
| 4510 | } |
4506 | 4511 | } |
4507 | 4512 | |
4508 | 4513 | /** |