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

props kwight.
fixes #29550.
Built from https://develop.svn.wordpress.org/trunk@29719


git-svn-id: http://core.svn.wordpress.org/trunk@29493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2014-09-07 14:23:17 +00:00
parent 0e28457536
commit b9357c40eb
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;
}