Skip to content

Commit f772ed5

Browse files
committed
Merge branch 'dev-branch'
2 parents 50130d4 + b246a8d commit f772ed5

14 files changed

+1086
-6612
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Changelog
22

3+
### V 3.4.7 - 2024-09-24
4+
* Fixed: Recaptcha won't reset after submitting the application form.
5+
* Minor bug fixes and code improvements.
6+
37
### V 3.4.6 - 2024-04-02
48
* Fixed: Author email template tag is not working properly in job expiry notification.
59
* Minor bug fixes and code improvements.

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
**Contributors:** awsmin
44
**Tags:** jobs, job listing, job openings, job board, careers page, jobs page, wp job opening, jobs plugin
55
**Requires at least:** 4.8
6-
**Tested up to:** 6.4.3
6+
**Tested up to:** 6.6.2
77
**Requires PHP:** 5.6
88
**Stable tag:** 3.4
99
**License:** GPLv2 or later
@@ -95,6 +95,10 @@ The plugin comes with two layouts - Grid and List which are designed carefully a
9595

9696
## Changelog
9797

98+
**V 3.4.7 - 2024-09-24**
99+
* Fixed: Recaptcha won't reset after submitting the application form.
100+
* Minor bug fixes and code improvements.
101+
98102
**V 3.4.6 - 2024-04-02**
99103
* Fixed: Author email template tag is not working properly in job expiry notification.
100104
* Minor bug fixes and code improvements.

assets/js/admin-overview.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/admin.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/public/job-application.js

+3
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ jQuery(document).ready(function($) {
107107
})
108108
.always(function() {
109109
$submitBtn.prop('disabled', false).val(submitBtnText).removeClass('awsm-application-submit-btn-disabled');
110+
if (typeof grecaptcha !== 'undefined') {
111+
grecaptcha.reset();
112+
}
110113
});
111114
}
112115
};

assets/js/public/job-listings.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,12 @@ jQuery(function($) {
339339
if ('selectric' in awsmJobsPublic.vendors && awsmJobsPublic.vendors.selectric) {
340340
$elem.selectric({
341341
onInit: function(select, selectric) {
342-
var id = select.id;
343-
var $input = $(selectric.elements.input);
344-
$(select).attr('id', 'selectric-' + id);
345-
$input.attr('id', id);
342+
var id = select.id;
343+
if (selectric && selectric.elements && selectric.elements.input) {
344+
var $input = $(selectric.elements.input);
345+
$(select).attr('id', 'selectric-' + id);
346+
$input.attr('id', id);
347+
}
346348
},
347349
arrowButtonMarkup: '<span class="awsm-selectric-arrow-drop">&#x25be;</span>',
348350
customClass: {

assets/js/script.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/script.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inc/class-awsm-job-openings-form.php

+17-11
Original file line numberDiff line numberDiff line change
@@ -708,10 +708,13 @@ public static function get_expired_notification_content() {
708708
* @return array
709709
*/
710710
public static function get_notification_options( $type ) {
711-
$options = array();
712-
$admin_email = get_option( 'admin_email' );
713-
$hr_email = get_option( 'awsm_hr_email_address' );
714-
$expired_options = self::get_expired_notification_content();
711+
$options = array();
712+
$admin_email = get_option( 'admin_email' );
713+
$hr_email = get_option( 'awsm_hr_email_address' );
714+
$expired_options = self::get_expired_notification_content();
715+
if ( ! class_exists( 'AWSM_Job_Openings_Settings' ) ) {
716+
require_once AWSM_JOBS_PLUGIN_DIR . '/admin/class-awsm-job-openings-settings.php';
717+
}
715718
$default_from_email = AWSM_Job_Openings_Settings::awsm_from_email();
716719

717720
if ( $type === 'applicant' ) {
@@ -789,13 +792,16 @@ protected function notification_email( $applicant_details, $data = array() ) {
789792
}
790793

791794
if ( $enable ) {
792-
$admin_email = get_option( 'admin_email' );
793-
$hr_mail = get_option( 'awsm_hr_email_address' );
794-
$applicant_email = $applicant_details['awsm_applicant_email'];
795-
$company_name = get_option( 'awsm_job_company_name' );
796-
$from = ( ! empty( $company_name ) ) ? $company_name : get_option( 'blogname' );
797-
$author_id = get_post_field( 'post_author', $applicant_details['awsm_job_id'] );
798-
$author_email = get_the_author_meta( 'user_email', intval( $author_id ) );
795+
$admin_email = get_option( 'admin_email' );
796+
$hr_mail = get_option( 'awsm_hr_email_address' );
797+
$applicant_email = $applicant_details['awsm_applicant_email'];
798+
$company_name = get_option( 'awsm_job_company_name' );
799+
$from = ( ! empty( $company_name ) ) ? $company_name : get_option( 'blogname' );
800+
$author_id = get_post_field( 'post_author', $applicant_details['awsm_job_id'] );
801+
$author_email = get_the_author_meta( 'user_email', intval( $author_id ) );
802+
if ( ! class_exists( 'AWSM_Job_Openings_Settings' ) ) {
803+
require_once AWSM_JOBS_PLUGIN_DIR . '/admin/class-awsm-job-openings-settings.php';
804+
}
799805
$default_from_email = AWSM_Job_Openings_Settings::awsm_from_email();
800806

801807
$tags = $this->get_mail_template_tags(

languages/wp-job-openings.pot

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgstr ""
77
"Content-Type: text/plain; charset=UTF-8\n"
88
"Content-Transfer-Encoding: 8bit\n"
99
"Language-Team: AWSM innovations <[email protected]>\n"
10-
"POT-Creation-Date: 2024-04-02 14:55+0000\n"
10+
"POT-Creation-Date: 2024-09-25 09:47+0000\n"
1111
"X-Poedit-Basepath: ..\n"
1212
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
1313
"X-Poedit-SearchPath-0: .\n"
@@ -71,7 +71,7 @@ msgstr ""
7171
msgid "ago"
7272
msgstr ""
7373

74-
#: wp-job-openings.php:519, wp-job-openings.php:539, wp-job-openings.php:792, wp-job-openings.php:2011, admin/templates/meta/job-status.php:54
74+
#: wp-job-openings.php:519, wp-job-openings.php:539, wp-job-openings.php:792, wp-job-openings.php:2014, admin/templates/meta/job-status.php:54
7575
msgid "Expired"
7676
msgstr ""
7777

0 commit comments

Comments
 (0)