From 3136cbb1c9c0d7a507239440a3498f397ebd327b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 7 Sep 2014 14:22:38 +0000 Subject: [PATCH] Twenty Fourteen: Use correct check for the front page in Featured_Content::pre_get_posts(). props kwight. fixes #29550. git-svn-id: https://develop.svn.wordpress.org/trunk@29719 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyfourteen/inc/featured-content.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/wp-content/themes/twentyfourteen/inc/featured-content.php b/src/wp-content/themes/twentyfourteen/inc/featured-content.php index ccff4cace4..fe90ef120b 100644 --- a/src/wp-content/themes/twentyfourteen/inc/featured-content.php +++ b/src/wp-content/themes/twentyfourteen/inc/featured-content.php @@ -235,10 +235,8 @@ class Featured_Content { return; } - $page_on_front = get_option( 'page_on_front' ); - // Bail if the blog page is not the front page. - if ( ! empty( $page_on_front ) ) { + if ( 'posts' !== get_option( 'show_on_front' ) ) { return; }