WP Job Manager - Version 1.29.2

Version Description

  • Fix: PHP Notice when sanitizing multiple inputs (bug in 1.29.1 release). (@albionselimaj)
Download this release

Release Info

Developer jakeom
Plugin Icon 128x128 WP Job Manager
Version 1.29.2
Comparing to
See all releases

Code changes from version 1.29.1 to 1.29.2

changelog.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  = 1.29.1 =
2
  * Enhancement: When retrieving listings in `[jobs]` shortcode, setting `orderby` to `rand_featured` will still place featured listings at the top. (@jom)
3
  * Enhancement: Scroll to show application details when clicking on "Apply for Job" button. (@jom)
1
+ = 1.29.2 =
2
+ * Fix: PHP Notice when sanitizing multiple inputs (bug in 1.29.1 release). (@albionselimaj)
3
+
4
  = 1.29.1 =
5
  * Enhancement: When retrieving listings in `[jobs]` shortcode, setting `orderby` to `rand_featured` will still place featured listings at the top. (@jom)
6
  * Enhancement: Scroll to show application details when clicking on "Apply for Job" button. (@jom)
includes/abstracts/abstract-wp-job-manager-form.php CHANGED
@@ -294,8 +294,13 @@ abstract class WP_Job_Manager_Form {
294
  protected function sanitize_posted_field( $value, $sanitizer = null ) {
295
  // Sanitize value
296
  if ( is_array( $value ) ) {
297
- return array_map( array( $this, 'sanitize_posted_field' ), $value, $sanitizer );
 
 
 
 
298
  }
 
299
  $value = trim( $value );
300
 
301
  if ( 'url' === $sanitizer ) {
294
  protected function sanitize_posted_field( $value, $sanitizer = null ) {
295
  // Sanitize value
296
  if ( is_array( $value ) ) {
297
+ foreach ( $value as $key => $val ) {
298
+ $value[ $key ] = $this->sanitize_posted_field( $val, $sanitizer );
299
+ }
300
+
301
+ return $value;
302
  }
303
+
304
  $value = trim( $value );
305
 
306
  if ( 'url' === $sanitizer ) {
languages/wp-job-manager.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPL2+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WP Job Manager 1.29.1\n"
6
  "Report-Msgid-Bugs-To: https://github.com/Automattic/WP-Job-Manager/issues\n"
7
- "POT-Creation-Date: 2017-11-27 12:20:43+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -1238,38 +1238,38 @@ msgstr ""
1238
  msgid "You must be signed in to post a new listing."
1239
  msgstr ""
1240
 
1241
- #: includes/helper/class-wp-job-manager-helper.php:249
1242
  msgid "Manage License"
1243
  msgstr ""
1244
 
1245
- #: includes/helper/class-wp-job-manager-helper.php:251
1246
  #: includes/helper/views/html-licences.php:69
1247
  msgid "Activate License"
1248
  msgstr ""
1249
 
1250
- #: includes/helper/class-wp-job-manager-helper.php:421
1251
  msgid ""
1252
  "Please enter a valid license key and email address in order to activate "
1253
  "this plugin's license."
1254
  msgstr ""
1255
 
1256
- #: includes/helper/class-wp-job-manager-helper.php:449
1257
  msgid "Connection failed to the License Key API server - possible server issue."
1258
  msgstr ""
1259
 
1260
- #: includes/helper/class-wp-job-manager-helper.php:457
1261
  msgid "Plugin license has been activated."
1262
  msgstr ""
1263
 
1264
- #: includes/helper/class-wp-job-manager-helper.php:459
1265
  msgid "An unknown error occurred while attempting to activate the license"
1266
  msgstr ""
1267
 
1268
- #: includes/helper/class-wp-job-manager-helper.php:471
1269
  msgid "license is not active."
1270
  msgstr ""
1271
 
1272
- #: includes/helper/class-wp-job-manager-helper.php:485
1273
  msgid "Plugin license has been deactivated."
1274
  msgstr ""
1275
 
2
  # This file is distributed under the GPL2+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WP Job Manager 1.29.2\n"
6
  "Report-Msgid-Bugs-To: https://github.com/Automattic/WP-Job-Manager/issues\n"
7
+ "POT-Creation-Date: 2017-12-04 13:55:35+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
1238
  msgid "You must be signed in to post a new listing."
1239
  msgstr ""
1240
 
1241
+ #: includes/helper/class-wp-job-manager-helper.php:255
1242
  msgid "Manage License"
1243
  msgstr ""
1244
 
1245
+ #: includes/helper/class-wp-job-manager-helper.php:257
1246
  #: includes/helper/views/html-licences.php:69
1247
  msgid "Activate License"
1248
  msgstr ""
1249
 
1250
+ #: includes/helper/class-wp-job-manager-helper.php:440
1251
  msgid ""
1252
  "Please enter a valid license key and email address in order to activate "
1253
  "this plugin's license."
1254
  msgstr ""
1255
 
1256
+ #: includes/helper/class-wp-job-manager-helper.php:468
1257
  msgid "Connection failed to the License Key API server - possible server issue."
1258
  msgstr ""
1259
 
1260
+ #: includes/helper/class-wp-job-manager-helper.php:476
1261
  msgid "Plugin license has been activated."
1262
  msgstr ""
1263
 
1264
+ #: includes/helper/class-wp-job-manager-helper.php:478
1265
  msgid "An unknown error occurred while attempting to activate the license"
1266
  msgstr ""
1267
 
1268
+ #: includes/helper/class-wp-job-manager-helper.php:490
1269
  msgid "license is not active."
1270
  msgstr ""
1271
 
1272
+ #: includes/helper/class-wp-job-manager-helper.php:504
1273
  msgid "Plugin license has been deactivated."
1274
  msgstr ""
1275
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mikejolley, automattic, adamkheckler, annezazu, cena, chaselivings
3
  Tags: job manager, job listing, job board, job management, job lists, job list, job, jobs, company, hiring, employment, employer, employees, candidate, freelance, internship, job listings, positions, board, application, hiring, listing, manager, recruiting, recruitment, talent
4
  Requires at least: 4.3.1
5
  Tested up to: 4.9
6
- Stable tag: 1.29.1
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -141,6 +141,9 @@ You can view (and contribute) translations via the [translate.wordpress.org](htt
141
 
142
  == Changelog ==
143
 
 
 
 
144
  = 1.29.1 =
145
  * Enhancement: When retrieving listings in `[jobs]` shortcode, setting `orderby` to `rand_featured` will still place featured listings at the top. (@jom)
146
  * Enhancement: Scroll to show application details when clicking on "Apply for Job" button. (@jom)
3
  Tags: job manager, job listing, job board, job management, job lists, job list, job, jobs, company, hiring, employment, employer, employees, candidate, freelance, internship, job listings, positions, board, application, hiring, listing, manager, recruiting, recruitment, talent
4
  Requires at least: 4.3.1
5
  Tested up to: 4.9
6
+ Stable tag: 1.29.2
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
141
 
142
  == Changelog ==
143
 
144
+ = 1.29.2 =
145
+ * Fix: PHP Notice when sanitizing multiple inputs (bug in 1.29.1 release). (@albionselimaj)
146
+
147
  = 1.29.1 =
148
  * Enhancement: When retrieving listings in `[jobs]` shortcode, setting `orderby` to `rand_featured` will still place featured listings at the top. (@jom)
149
  * Enhancement: Scroll to show application details when clicking on "Apply for Job" button. (@jom)
wp-job-manager.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Job Manager
4
  * Plugin URI: https://wpjobmanager.com/
5
  * Description: Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
6
- * Version: 1.29.1
7
  * Author: Automattic
8
  * Author URI: https://wpjobmanager.com/
9
  * Requires at least: 4.1
@@ -58,7 +58,7 @@ class WP_Job_Manager {
58
  */
59
  public function __construct() {
60
  // Define constants
61
- define( 'JOB_MANAGER_VERSION', '1.29.1' );
62
  define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
63
  define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
64
 
3
  * Plugin Name: WP Job Manager
4
  * Plugin URI: https://wpjobmanager.com/
5
  * Description: Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
6
+ * Version: 1.29.2
7
  * Author: Automattic
8
  * Author URI: https://wpjobmanager.com/
9
  * Requires at least: 4.1
58
  */
59
  public function __construct() {
60
  // Define constants
61
+ define( 'JOB_MANAGER_VERSION', '1.29.2' );
62
  define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
63
  define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
64