Regions for WP Job Manager - Version 1.17.4

Version Description

Download this release

Release Info

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

Code changes from version 1.17.3 to 1.17.4

assets/js/main.js CHANGED
@@ -34,11 +34,11 @@
34
  },
35
 
36
  addSubmission: function() {
37
- if ( typeof chosen === "function" ) {
38
  $( '#job_region, #resume_region' ).chosen( {
39
  search_contains: true,
40
  } );
41
- } else {
42
  $( '#job_region, #resume_region' ).select2( this.select2_args );
43
  }
44
  },
@@ -68,7 +68,7 @@
68
  search_contains: true
69
  };
70
 
71
- if ( typeof chosen === "function" ) {
72
  if ( ! wrapper ) {
73
  $regions.chosen( args );
74
  } else {
34
  },
35
 
36
  addSubmission: function() {
37
+ if ( $.isFunction($.fn.chosen) ) {
38
  $( '#job_region, #resume_region' ).chosen( {
39
  search_contains: true,
40
  } );
41
+ } else if( $.isFunction($.fn.select2) ) {
42
  $( '#job_region, #resume_region' ).select2( this.select2_args );
43
  }
44
  },
68
  search_contains: true
69
  };
70
 
71
+ if ( $.isFunction($.fn.chosen) ) {
72
  if ( ! wrapper ) {
73
  $regions.chosen( args );
74
  } else {
includes/class-taxonomy.php CHANGED
@@ -60,6 +60,7 @@ class Astoundify_Job_Manager_Regions_Taxonomy extends Astoundify_Job_Manager_Reg
60
  'delete_terms' => $admin_capability,
61
  'assign_terms' => $admin_capability,
62
  ),
 
63
  'rewrite' => $job_rewrite,
64
  )
65
  );
@@ -94,6 +95,7 @@ class Astoundify_Job_Manager_Regions_Taxonomy extends Astoundify_Job_Manager_Reg
94
  'delete_terms' => $admin_capability,
95
  'assign_terms' => $admin_capability,
96
  ),
 
97
  'rewrite' => $resume_rewrite,
98
  )
99
  );
60
  'delete_terms' => $admin_capability,
61
  'assign_terms' => $admin_capability,
62
  ),
63
+ 'show_in_rest' => true,
64
  'rewrite' => $job_rewrite,
65
  )
66
  );
95
  'delete_terms' => $admin_capability,
96
  'assign_terms' => $admin_capability,
97
  ),
98
+ 'show_in_rest' => true,
99
  'rewrite' => $resume_rewrite,
100
  )
101
  );
languages/wp-job-manager-locations.pot CHANGED
@@ -2,17 +2,17 @@
2
  # This file is distributed under the same license as the Regions for WP Job Manager package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Regions for WP Job Manager 1.17.3\n"
6
  "Report-Msgid-Bugs-To: "
7
- "https://wordpress.org/support/plugin/wp-job-manager-locations\n"
8
- "POT-Creation-Date: 2019-01-30 16:45:28+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
- "X-Generator: grunt-wp-i18n1.0.0\n"
16
 
17
  #: includes/class-taxonomy.php:17 includes/class-template.php:94
18
  msgid "Job Region"
2
  # This file is distributed under the same license as the Regions for WP Job Manager package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Regions for WP Job Manager 1.17.4\n"
6
  "Report-Msgid-Bugs-To: "
7
+ "https://wordpress.org/support/plugin/wp-job-manager-regions\n"
8
+ "POT-Creation-Date: 2019-02-14 13:04:25+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "X-Generator: grunt-wp-i18n 1.0.3\n"
16
 
17
  #: includes/class-taxonomy.php:17 includes/class-template.php:94
18
  msgid "Job Region"
readme.txt CHANGED
@@ -6,7 +6,7 @@ Contributors: Astoundify
6
  Tags: job, job listing, job region
7
  Requires at least: 4.7.0
8
  Tested up to: 5.0.3
9
- Stable Tag: 1.17.3
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
 
@@ -31,20 +31,25 @@ Astoundify has released two themes that are fully integrated with the WP Job Man
31
 
32
  == Changelog ==
33
 
34
- = 1.17.3: January 30, 2018 =
 
 
 
 
 
35
 
36
  * Fix: Output region instead of candidate location if setting is enabled.
37
  * Fix: Further WP Job Manager compatibility.
38
 
39
- = 1.17.1/2: January 26, 2018 =
40
 
41
  * Fix: Ensure select2 arguments are always defined.
42
 
43
- = 1.17.0: January 24, 2018 =
44
 
45
  * New: WP Job Manager 1.32.0 support.
46
 
47
- = 1.16.0: January 14, 2018 =
48
 
49
  * New: WP Job Manager 1.32.0 support.
50
 
6
  Tags: job, job listing, job region
7
  Requires at least: 4.7.0
8
  Tested up to: 5.0.3
9
+ Stable Tag: 1.17.4
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
 
31
 
32
  == Changelog ==
33
 
34
+ = 1.17.4: February 14, 2019 =
35
+
36
+ * Fix: Improve type checks for the Select2 library.
37
+ * Fix: Make the taxonomy available to REST Api, and now it's available in the new editor.
38
+
39
+ = 1.17.3: January 30, 2019 =
40
 
41
  * Fix: Output region instead of candidate location if setting is enabled.
42
  * Fix: Further WP Job Manager compatibility.
43
 
44
+ = 1.17.1/2: January 26, 2019 =
45
 
46
  * Fix: Ensure select2 arguments are always defined.
47
 
48
+ = 1.17.0: January 24, 2019 =
49
 
50
  * New: WP Job Manager 1.32.0 support.
51
 
52
+ = 1.16.0: January 14, 2019 =
53
 
54
  * New: WP Job Manager 1.32.0 support.
55
 
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.17.3
9
  * Text Domain: wp-job-manager-locations
10
  * Domain Path: /languages
11
  */
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.17.4
9
  * Text Domain: wp-job-manager-locations
10
  * Domain Path: /languages
11
  */