Skip to content

Commit

Permalink
Revert "Use wildcard query with compare like." (#1210)
Browse files Browse the repository at this point in the history
* Revert "Remove weighting by date (#940)"

This reverts commit f8efd8d.

* Revert "Allow facet query string customization. (#1198) (#1208)"

This reverts commit c30a95e.

* Revert "Correct a comment. (#1172)"

This reverts commit 5336413.

* Revert "Hide prefix trailing dash on settings page (#1204)"

This reverts commit 2adc740.

* Revert "WIP Sticky posts feature. (#1164)"

This reverts commit 917d02b.

* Revert "ep_indexable_blogs filter (#1209)"

This reverts commit 4cba515.

* Revert "Fix postType being set to 'publish' instead of postStatus. (#1173)"

This reverts commit a253dc3.

* Revert "Allow facet widget customization. (#1160)"

This reverts commit b2f77c7.

* Revert "Filter prefiltered post_types when protected content feature enabled. (#1135)"

This reverts commit 8b86bb4.

* Revert "Use wildcard query with compare like. (#1167)"

This reverts commit bde2c18.
  • Loading branch information
Allan Collins authored Jan 21, 2019
1 parent f8efd8d commit 0546726
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions classes/class-ep-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -1952,8 +1952,10 @@ public function build_meta_query( $meta_queries ){
case 'like':
if ( isset( $single_meta_query['value'] ) ) {
$terms_obj = array(
'wildcard' => array(
$meta_key_path => $single_meta_query['value'] . '*',
'query' => array(
'match' => array(
$meta_key_path => $single_meta_query['value'],
)
),
);
}
Expand Down

0 comments on commit 0546726

Please sign in to comment.