WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/07/2014 02:22:38 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Twenty Fourteen: Use correct check for the front page in Featured_Content::pre_get_posts().

props kwight.
fixes #29550.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php

    r29210 r29719  
    236236        }
    237237
    238         $page_on_front = get_option( 'page_on_front' );
    239 
    240238        // Bail if the blog page is not the front page.
    241         if ( ! empty( $page_on_front ) ) {
     239        if ( 'posts' !== get_option( 'show_on_front' ) ) {
    242240            return;
    243241        }
Note: See TracChangeset for help on using the changeset viewer.