Changeset 1813246 – WordPress Plugin Repository
- ️Thu Feb 01 2018
elasticpress/trunk/classes/class-ep-wp-query-integration.php
r1812274 | r1813246 | |
---|---|---|
248 | 248 | |
249 | 249 | 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 | } | |
251 | 262 | } |
252 | 263 |
elasticpress/trunk/elasticpress.php
r1812274 | r1813246 | |
---|---|---|
4 | 4 | * Plugin Name: ElasticPress |
5 | 5 | * Description: A fast and flexible search and query engine for WordPress. |
6 | * Version: 2.4.1 | |
6 | * Version: 2.4.2 | |
7 | 7 | * Author: Taylor Lovett, Matt Gross, Aaron Holbrook, 10up |
8 | 8 | * Author URI: http://10up.com |
… | … | |
23 | 23 | define( 'EP_URL', plugin_dir_url( __FILE__ ) ); |
24 | 24 | define( 'EP_PATH', plugin_dir_path( __FILE__ ) ); |
25 | define( 'EP_VERSION', '2.4.1' ); | |
25 | define( 'EP_VERSION', '2.4.2' ); | |
26 | 26 | |
27 | 27 | /** |