Make WordPress Core


Ignore:
Timestamp:
11/18/2013 10:03:03 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: correct $query usage in Featured_Content::pre_get_posts(), props SergeyBiryukov, fixes #26064.

File:
1 edited

Legend:

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

    r26189 r26255  
    193193         * @return WP_Query Possibly modified WP_query
    194194         */
    195         public static function pre_get_posts( $query = false ) {
    196 
    197                 // Bail if not home, not a query, not main query.
    198                 if ( ! is_a( $query, 'WP_Query' ) || ! $query->is_main_query() || ! is_home() )
     195        public static function pre_get_posts( $query ) {
     196
     197                // Bail if not home or not main query.
     198                if ( ! $query->is_home() || ! $query->is_main_query() )
    199199                        return;
    200200
Note: See TracChangeset for help on using the changeset viewer.