Don't call is_home() before the query is run in Featured Content's pre_get_posts hook callback.

git-svn-id: https://develop.svn.wordpress.org/trunk@26189 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2013-11-15 02:36:30 +00:00
parent c7710e4238
commit 0f9564807b
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ class Featured_Content {
public static function pre_get_posts( $query = false ) {
// Bail if not home, not a query, not main query.
if ( ! is_home() || ! is_a( $query, 'WP_Query' ) || ! $query->is_main_query() )
if ( ! is_a( $query, 'WP_Query' ) || ! $query->is_main_query() || ! is_home() )
return;
$page_on_front = get_option( 'page_on_front' );