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
This commit is contained in:
Sergey Biryukov 2014-09-07 14:22:38 +00:00
parent d552ba29bc
commit 3136cbb1c9
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}