Make WordPress Core

Ticket #26064: 26064.patch

File 26064.patch, 825 bytes (added by SergeyBiryukov, 10 years ago)
  • src/wp-content/themes/twentyfourteen/inc/featured-content.php

     
    192192         * @param WP_Query $query
    193193         * @return WP_Query Possibly modified WP_query
    194194         */
    195         public static function pre_get_posts( $query = false ) {
     195        public static function pre_get_posts( $query ) {
    196196
    197                 // Bail if not home, not a query, not main query.
    198                 if ( ! is_a( $query, 'WP_Query' ) || ! $query->is_main_query() || ! is_home() )
     197                // Bail if not home or not main query.
     198                if ( ! $query->is_home() || ! $query->is_main_query() )
    199199                        return;
    200200
    201201                $page_on_front = get_option( 'page_on_front' );