Skip to content

Commit

Permalink
Merge pull request #66 from wpeventmanager/1.0.1
Browse files Browse the repository at this point in the history
1.0.1
  • Loading branch information
tamanna-ahuja committed May 17, 2022
2 parents 5154473 + 4ed90bd commit 4ee67e5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
8 changes: 7 additions & 1 deletion includes/rest-api/wpem-rest-events-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,13 @@ protected function prepare_objects_query( $request )
$args = parent::prepare_objects_query($request);

// Set post_status.
$args['post_status'] = $request['status'];

if (isset($request['status']) && $request['status'] !== 'any') {
$args['post_status'] = $request['status'];
} else {
unset($args['post_status']);
}


// Taxonomy query to filter events by type, category,
// tag
Expand Down
12 changes: 10 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,24 @@ Contributors: wpeventmanager,ashokdudhat,hiteshmakvana
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=55FRYATTFLA5N
Tags: event manager, Event, events, event manager api , listings
Requires at least: 4.1
Tested up to: 5.8
Tested up to: 5.9
Stable tag: 1.0.0
Requires PHP: 5.6
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

WP Event Manager Rest API

== Description ==
== Changelog ==

= 1.0.1 [ May 17th, 2022 ] =

Fixed - Past events search.
Fixed - Message and status code improvements.
Fixed - Data improvements.


== Description ==

WP Event Manager Rest API

Expand Down
2 changes: 1 addition & 1 deletion wpem-rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct()
}

// Define constants
define('WPEM_REST_API_VERSION', '1.0.0');
define('WPEM_REST_API_VERSION', '1.0.1');
define('WPEM_REST_API_FILE', __FILE__);
define('WPEM_REST_API_PLUGIN_DIR', untrailingslashit(plugin_dir_path(__FILE__)));
define('WPEM_REST_API_PLUGIN_URL', untrailingslashit(plugins_url(basename(plugin_dir_path(__FILE__)), basename(__FILE__))));
Expand Down

0 comments on commit 4ee67e5

Please sign in to comment.