Version Description
Download this release
Release Info
Developer | jakeom |
Plugin | WP Job Manager |
Version | 1.31.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.31.2 to 1.31.1.1
changelog.txt
CHANGED
@@ -1,6 +1,3 @@
|
|
1 |
-
= 1.31.2 =
|
2 |
-
* Fix: Adds missing quote from WP admin taxonomy fields. (@redpik)
|
3 |
-
|
4 |
= 1.31.1 =
|
5 |
* Enhancement: Add option to show company logo in Recent Jobs widget. (@RajeebTheGreat)
|
6 |
* Enhancement: Suggest additional cookie information on Privacy Policy page.
|
|
|
|
|
|
|
1 |
= 1.31.1 =
|
2 |
* Enhancement: Add option to show company logo in Recent Jobs widget. (@RajeebTheGreat)
|
3 |
* Enhancement: Suggest additional cookie information on Privacy Policy page.
|
includes/admin/class-wp-job-manager-writepanels.php
CHANGED
@@ -223,7 +223,7 @@ class WP_Job_Manager_Writepanels {
|
|
223 |
foreach ( $terms as $term ) {
|
224 |
$id = $taxonomy . '-' . $term->term_id;
|
225 |
echo '<li id="' . esc_attr( $id ) . '"><label class="selectit">';
|
226 |
-
echo '<input type="radio" id="in-' . esc_attr( $id ) . '
|
227 |
echo '</label></li>';
|
228 |
}
|
229 |
?>
|
223 |
foreach ( $terms as $term ) {
|
224 |
$id = $taxonomy . '-' . $term->term_id;
|
225 |
echo '<li id="' . esc_attr( $id ) . '"><label class="selectit">';
|
226 |
+
echo '<input type="radio" id="in-' . esc_attr( $id ) . ' name="' . esc_attr( $name ) . '" ' . checked( $current, $term->term_id ) . ' value="' . esc_attr( $term->term_id ) . '" />' . esc_attr( $term->name ) . '<br />';
|
227 |
echo '</label></li>';
|
228 |
}
|
229 |
?>
|
includes/forms/class-wp-job-manager-form-submit-job.php
CHANGED
@@ -325,6 +325,24 @@ class WP_Job_Manager_Form_Submit_Job extends WP_Job_Manager_Form {
|
|
325 |
}
|
326 |
}
|
327 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
if ( 'file' === $field['type'] && ! empty( $field['allowed_mime_types'] ) ) {
|
329 |
if ( is_array( $values[ $group_key ][ $key ] ) ) {
|
330 |
$check_value = array_filter( $values[ $group_key ][ $key ] );
|
@@ -677,6 +695,11 @@ class WP_Job_Manager_Form_Submit_Job extends WP_Job_Manager_Form {
|
|
677 |
include_once ABSPATH . 'wp-admin/includes/image.php';
|
678 |
include_once ABSPATH . 'wp-admin/includes/media.php';
|
679 |
|
|
|
|
|
|
|
|
|
|
|
680 |
$upload_dir = wp_upload_dir();
|
681 |
$attachment_url = str_replace( array( $upload_dir['baseurl'], WP_CONTENT_URL, site_url( '/' ) ), array( $upload_dir['basedir'], WP_CONTENT_DIR, ABSPATH ), $attachment_url );
|
682 |
|
325 |
}
|
326 |
}
|
327 |
}
|
328 |
+
if ( 'file' === $field['type'] ) {
|
329 |
+
if ( is_array( $values[ $group_key ][ $key ] ) ) {
|
330 |
+
$check_value = array_filter( $values[ $group_key ][ $key ] );
|
331 |
+
} else {
|
332 |
+
$check_value = array_filter( array( $values[ $group_key ][ $key ] ) );
|
333 |
+
}
|
334 |
+
if ( ! empty( $check_value ) ) {
|
335 |
+
foreach ( $check_value as $file_url ) {
|
336 |
+
if ( is_numeric( $file_url ) ) {
|
337 |
+
continue;
|
338 |
+
}
|
339 |
+
$file_url = esc_url( $file_url, array( 'http', 'https' ) );
|
340 |
+
if ( empty( $file_url ) ) {
|
341 |
+
throw new Exception( __( 'Invalid attachment provided.', 'wp-job-manager' ) );
|
342 |
+
}
|
343 |
+
}
|
344 |
+
}
|
345 |
+
}
|
346 |
if ( 'file' === $field['type'] && ! empty( $field['allowed_mime_types'] ) ) {
|
347 |
if ( is_array( $values[ $group_key ][ $key ] ) ) {
|
348 |
$check_value = array_filter( $values[ $group_key ][ $key ] );
|
695 |
include_once ABSPATH . 'wp-admin/includes/image.php';
|
696 |
include_once ABSPATH . 'wp-admin/includes/media.php';
|
697 |
|
698 |
+
$attachment_url = esc_url( $attachment_url, array( 'http', 'https' ) );
|
699 |
+
if ( empty( $attachment_url ) ) {
|
700 |
+
return 0;
|
701 |
+
}
|
702 |
+
|
703 |
$upload_dir = wp_upload_dir();
|
704 |
$attachment_url = str_replace( array( $upload_dir['baseurl'], WP_CONTENT_URL, site_url( '/' ) ), array( $upload_dir['basedir'], WP_CONTENT_DIR, ABSPATH ), $attachment_url );
|
705 |
|
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.31.
|
6 |
"Report-Msgid-Bugs-To: https://github.com/Automattic/WP-Job-Manager/issues\n"
|
7 |
-
"POT-Creation-Date: 2018-07-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the GPL2+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WP Job Manager 1.31.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://github.com/Automattic/WP-Job-Manager/issues\n"
|
7 |
+
"POT-Creation-Date: 2018-07-11 16:27:40+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: mikejolley, automattic, adamkheckler, alexsanford1, annezazu, cena
|
|
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.7.0
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 1.31.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -152,9 +152,6 @@ It then creates a database based on the parameters passed to it.
|
|
152 |
|
153 |
== Changelog ==
|
154 |
|
155 |
-
= 1.31.2 =
|
156 |
-
* Fix: Adds missing quote from WP admin taxonomy fields. (@redpik)
|
157 |
-
|
158 |
= 1.31.1 =
|
159 |
* Enhancement: Add option to show company logo in Recent Jobs widget. (@RajeebTheGreat)
|
160 |
* Enhancement: Suggest additional cookie information on Privacy Policy page.
|
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.7.0
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 1.31.1
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
155 |
= 1.31.1 =
|
156 |
* Enhancement: Add option to show company logo in Recent Jobs widget. (@RajeebTheGreat)
|
157 |
* Enhancement: Suggest additional cookie information on Privacy Policy page.
|
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.31.
|
7 |
* Author: Automattic
|
8 |
* Author URI: https://wpjobmanager.com/
|
9 |
* Requires at least: 4.7.0
|
@@ -63,7 +63,7 @@ class WP_Job_Manager {
|
|
63 |
*/
|
64 |
public function __construct() {
|
65 |
// Define constants.
|
66 |
-
define( 'JOB_MANAGER_VERSION', '1.31.
|
67 |
define( 'JOB_MANAGER_MINIMUM_WP_VERSION', '4.7.0' );
|
68 |
define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
69 |
define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
|
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.31.1.1
|
7 |
* Author: Automattic
|
8 |
* Author URI: https://wpjobmanager.com/
|
9 |
* Requires at least: 4.7.0
|
63 |
*/
|
64 |
public function __construct() {
|
65 |
// Define constants.
|
66 |
+
define( 'JOB_MANAGER_VERSION', '1.31.1.1' );
|
67 |
define( 'JOB_MANAGER_MINIMUM_WP_VERSION', '4.7.0' );
|
68 |
define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
69 |
define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
|