mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user