Skip to content

Commit

Permalink
bump version to 1.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasKau committed Oct 3, 2024
1 parent e5eb660 commit a9b1815
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.0.21: 2024-10-03
## Added
* Added optional compare and type options for meta queries

### 1.0.20: 2023-09-12
## Added
* Added nonce to allow usage of logged in user during rest api calls.
Expand Down
4 changes: 2 additions & 2 deletions air-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://dude.fi
* License: GPL2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Version: 1.0.20
* Version: 1.0.21
*
* @package air-search
*/
Expand All @@ -16,7 +16,7 @@

defined( 'ABSPATH' ) || exit;

const PLUGIN_VERSION = '1.0.20';
const PLUGIN_VERSION = '1.0.21';

include plugin_dir_path( __FILE__ ) . '/query.php';
include plugin_dir_path( __FILE__ ) . '/helpers.php';
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"plugin"
],
"license": "GPL-3.0+",
"version": "1.0.20",
"version": "1.0.21",
"authors": [
{
"name": "Digitoimisto Dude Oy",
Expand Down
6 changes: 4 additions & 2 deletions query.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ function do_search_query( $params ) {

if ( 'meta' === $data['type'] ) {
$meta_query[] = [
'key' => $data['key'],
'value' => $_GET[ $field_key ], // phpcs:ignore
'key' => $data['key'],
'value' => $_GET[ $field_key ], // phpcs:ignore
'compare' => isset( $data['compare'] ) ? $data['compare'] : '=',
'type' => isset( $data['type'] ) ? $data['type'] : 'CHAR',
];
} elseif ( 'tax' === $data['type'] ) {
$tax_query[] = [
Expand Down

0 comments on commit a9b1815

Please sign in to comment.