From 8763f844d0356b02197673c4f5066c5f136da4d6 Mon Sep 17 00:00:00 2001 From: nithinjohn22 Date: Mon, 1 Apr 2024 14:24:43 +0530 Subject: [PATCH] FIX: When a job has hyphens in the title, they're being mauled in the subject line of emails --- inc/class-awsm-job-openings-form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/class-awsm-job-openings-form.php b/inc/class-awsm-job-openings-form.php index de5e2ed3..e7522ff0 100644 --- a/inc/class-awsm-job-openings-form.php +++ b/inc/class-awsm-job-openings-form.php @@ -533,7 +533,7 @@ public function insert_application() { wp_update_attachment_metadata( $attach_id, $attach_data ); $applicant_details = array( 'awsm_job_id' => $job_id, - 'awsm_apply_for' => esc_html( get_the_title( $job_id ) ), + 'awsm_apply_for' => html_entity_decode( esc_html( get_the_title( $job_id ) ) ), 'awsm_applicant_ip' => isset( $_SERVER['REMOTE_ADDR'] ) ? sanitize_text_field( $_SERVER['REMOTE_ADDR'] ) : '', 'awsm_applicant_name' => $applicant_name, 'awsm_applicant_email' => $applicant_email,