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:
parent
0e28457536
commit
b9357c40eb
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue