Make WordPress Core

Changeset 26189


Ignore:
Timestamp:
11/15/2013 02:36:30 AM (13 years ago)
Author:
wonderboymusic
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php

    r26135 r26189  
    196196
    197197                // Bail if not home, not a query, not main query.
    198                 if ( ! is_home() || ! is_a( $query, 'WP_Query' ) || ! $query->is_main_query() )
     198                if ( ! is_a( $query, 'WP_Query' ) || ! $query->is_main_query() || ! is_home() )
    199199                        return;
    200200
Note: See TracChangeset for help on using the changeset viewer.