Ticket #26064: 26064.patch
File 26064.patch, 825 bytes (added by , 11 years ago) |
---|
-
src/wp-content/themes/twentyfourteen/inc/featured-content.php
192 192 * @param WP_Query $query 193 193 * @return WP_Query Possibly modified WP_query 194 194 */ 195 public static function pre_get_posts( $query = false) {195 public static function pre_get_posts( $query ) { 196 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() )197 // Bail if not home or not main query. 198 if ( ! $query->is_home() || ! $query->is_main_query() ) 199 199 return; 200 200 201 201 $page_on_front = get_option( 'page_on_front' );