plugins.trac.wordpress.org

Changeset 1813246 – WordPress Plugin Repository

  • ️Thu Feb 01 2018

elasticpress/trunk/classes/class-ep-wp-query-integration.php

r1812274 r1813246  
248248
249249        if ( 'any' === $query_vars['post_type'] ) {
250             $query_vars['post_type'] = 'post';
 250            unset( $query_vars['post_type'] );
 251        }
 252
 253        /**
 254         * If not search and not set default to post. If not set and is search, use searchable post tpyes
 255         */
 256        if ( empty( $query_vars['post_type'] ) ) {
 257            if ( empty( $query_vars['s'] ) ) {
 258                $query_vars['post_type'] = 'post';
 259            } else {
 260                $query_vars['post_type'] = array_values( get_post_types( array( 'exclude_from_search' => false ) ) );
 261            }
251262        }
252263

elasticpress/trunk/elasticpress.php

r1812274 r1813246  
44 * Plugin Name: ElasticPress
55 * Description: A fast and flexible search and query engine for WordPress.
6  * Version:     2.4.1
 6 * Version:     2.4.2
77 * Author:      Taylor Lovett, Matt Gross, Aaron Holbrook, 10up
88 * Author URI:  http://10up.com
 
2323define( 'EP_URL', plugin_dir_url( __FILE__ ) );
2424define( 'EP_PATH', plugin_dir_path( __FILE__ ) );
25 define( 'EP_VERSION', '2.4.1' );
 25define( 'EP_VERSION', '2.4.2' );
2626
2727/**