Regions for WP Job Manager - Version 1.9.1

Version Description

Download this release

Release Info

Developer adampickering
Plugin Icon wp plugin Regions for WP Job Manager
Version 1.9.1
Comparing to
See all releases

Code changes from version 1.9.0 to 1.9.1

Files changed (2) hide show
  1. readme.txt +6 -2
  2. wp-job-manager-locations.php +4 -4
readme.txt CHANGED
@@ -6,8 +6,8 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=contact@
6
  Contributors: Astoundify
7
  Tags: job, job listing, job region
8
  Requires at least: 4.1
9
- Tested up to: 4.3.0
10
- Stable Tag: 1.9.0
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
13
 
@@ -32,6 +32,10 @@ Astoundify has released two themes that are fully integrated with the WP Job Man
32
 
33
  == Changelog ==
34
 
 
 
 
 
35
  = 1.9.0: September 1, 2015 =
36
 
37
  * Fix: WP Job Manager - Alerts support
6
  Contributors: Astoundify
7
  Tags: job, job listing, job region
8
  Requires at least: 4.1
9
+ Tested up to: 4.3.1
10
+ Stable Tag: 1.9.1
11
  License: GPLv3
12
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
13
 
32
 
33
  == Changelog ==
34
 
35
+ = 1.9.1: October 30, 2015 =
36
+
37
+ * Fix: Verify the region exists for alerts.
38
+
39
  = 1.9.0: September 1, 2015 =
40
 
41
  * Fix: WP Job Manager - Alerts support
wp-job-manager-locations.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Create predefined regions/locations that job submissions can associate themselves with.
6
  * Author: Astoundify
7
  * Author URI: http://astoundify.com
8
- * Version: 1.9.0
9
  * Text Domain: wp-job-manager-locations
10
  */
11
 
@@ -165,9 +165,9 @@ class Astoundify_Job_Manager_Regions {
165
  } elseif( isset( $args['search_region'] ) ) { // WPJM Alerts support
166
  $region = $args[ 'search_region' ];
167
 
168
- if ( is_int( $args['search_region'] ) ) {
169
- $region = array( $args['search_region'] );
170
- }
171
 
172
  $query_args[ 'tax_query' ][] = array(
173
  'taxonomy' => 'job_listing_region',
5
  * Description: Create predefined regions/locations that job submissions can associate themselves with.
6
  * Author: Astoundify
7
  * Author URI: http://astoundify.com
8
+ * Version: 1.9.1
9
  * Text Domain: wp-job-manager-locations
10
  */
11
 
165
  } elseif( isset( $args['search_region'] ) ) { // WPJM Alerts support
166
  $region = $args[ 'search_region' ];
167
 
168
+ if ( is_array( $region ) && empty( $region ) ) {
169
+ return $query_args;
170
+ }
171
 
172
  $query_args[ 'tax_query' ][] = array(
173
  'taxonomy' => 'job_listing_region',