WordPress.org

Make WordPress Core

Ticket #9105: show_on_front.9105.diff

File show_on_front.9105.diff, 532 bytes (added by filosofo, 9 years ago)
  • wp-includes/query.php

     
    331331 */
    332332function is_front_page () {
    333333        // most likely case
    334         if ( 'posts' == get_option('show_on_front') && is_home() )
     334        if ( 'page' != get_option('show_on_front') && is_home() )
    335335                return true;
    336336        elseif ( 'page' == get_option('show_on_front') && get_option('page_on_front') && is_page(get_option('page_on_front')) )
    337337                return true;