Changeset 2946388
- Timestamp:
- 08/02/2023 06:11:10 AM (3 years ago)
- Location:
- wp-job-openings/trunk
- Files:
-
- 4 edited
-
inc/class-awsm-job-openings-form.php (modified) (3 diffs)
-
languages/wp-job-openings.pot (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-job-openings.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-job-openings/trunk/inc/class-awsm-job-openings-form.php
r2945786 r2946388 670 670 } 671 671 672 public static function get_expired_notification_content() { 673 $options = array( 674 'enable' => 'enable', 675 'subject' => 'Job Listing Expired', 676 'content' => "This email is to notify you that your job listing for [{job-title}] has just expired. As a result, applicants will no longer be able to apply for this position.\n\nIf you would like to extend the expiration date or remove the listing, please log in to the dashboard and take the necessary steps.\n\nPowered by WP Job Openings Plugin", 677 ); 678 return $options; 679 } 680 672 681 /** 673 682 * Get the notification options. … … 679 688 */ 680 689 public static function get_notification_options( $type ) { 681 $options = array(); 682 $admin_email = get_option( 'admin_email' ); 683 $hr_email = get_option( 'awsm_hr_email_address' ); 690 $options = array(); 691 $admin_email = get_option( 'admin_email' ); 692 $hr_email = get_option( 'awsm_hr_email_address' ); 693 $expired_options = self::get_expired_notification_content(); 694 684 695 if ( $type === 'applicant' ) { 685 696 $options = array( … … 705 716 } elseif ( $type === 'author' ) { 706 717 $options = array( 707 'enable' => get_option( 'awsm_jobs_enable_expiry_notification' ),718 'enable' => get_option( 'awsm_jobs_enable_expiry_notification', $expired_options['enable'] ), 708 719 'from' => get_option( 'awsm_jobs_author_from_email_notification', $admin_email ), 709 720 'reply_to' => get_option( 'awsm_jobs_reply_to_notification' ), 710 721 'to' => get_option( 'awsm_jobs_author_to_notification', '{author-email}' ), 711 722 'cc' => get_option( 'awsm_jobs_author_hr_notification' ), 712 'subject' => get_option( 'awsm_jobs_author_notification_subject', ''),713 'content' => get_option( 'awsm_jobs_author_notification_content', ''),723 'subject' => get_option( 'awsm_jobs_author_notification_subject', $expired_options['subject'] ), 724 'content' => get_option( 'awsm_jobs_author_notification_content', $expired_options['content'] ), 714 725 'html_template' => get_option( 'awsm_jobs_notification_author_mail_template' ), 715 726 ); -
wp-job-openings/trunk/languages/wp-job-openings.pot
r2945786 r2946388 8 8 "Content-Transfer-Encoding: 8bit\n" 9 9 "Language-Team: AWSM innovations <hello@awsm.in>\n" 10 "POT-Creation-Date: 2023-0 7-31 08:31+0000\n"10 "POT-Creation-Date: 2023-08-01 09:28+0000\n" 11 11 "X-Poedit-Basepath: ..\n" 12 12 "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" … … 72 72 msgstr "" 73 73 74 #: wp-job-openings.php:497, wp-job-openings.php:517, wp-job-openings.php:762, wp-job-openings.php:197 7, admin/templates/meta/job-status.php:5474 #: wp-job-openings.php:497, wp-job-openings.php:517, wp-job-openings.php:762, wp-job-openings.php:1978, admin/templates/meta/job-status.php:54 75 75 msgid "Expired" 76 76 msgstr "" -
wp-job-openings/trunk/readme.txt
r2945786 r2946388 58 58 * [PRO Pack](https://wpjobopenings.com/pro-pack/) (PREMIUM) 59 59 * [User Access Control Add-on](https://wpjobopenings.com/add-ons/user-access-control/) (PREMIUM) 60 * [Job Alerts Add-on](https://wpjobopenings.com/add-ons/job-alerts/) (PREMIUM) 60 61 61 62 = WP Job Openings PRO Features = … … 102 103 103 104 == Changelog == 105 106 = V 3.4.1 - 2023-08-01 = 107 * Bug fixes 104 108 105 109 = V 3.4 - 2023-07-31 = -
wp-job-openings/trunk/wp-job-openings.php
r2945786 r2946388 6 6 * Author: AWSM Innovations 7 7 * Author URI: https://awsm.in/ 8 * Version: 3.4 8 * Version: 3.4.1 9 9 * Requires at least: 4.8 10 10 * Requires PHP: 5.6 … … 38 38 } 39 39 if ( ! defined( 'AWSM_JOBS_PLUGIN_VERSION' ) ) { 40 define( 'AWSM_JOBS_PLUGIN_VERSION', '3.4 ' );40 define( 'AWSM_JOBS_PLUGIN_VERSION', '3.4.1' ); 41 41 } 42 42 if ( ! defined( 'AWSM_JOBS_UPLOAD_DIR_NAME' ) ) { … … 1831 1831 */ 1832 1832 public function expiry_notification_handler( $new_status, $old_status, $post ) { 1833 $enable_expiry = get_option( 'awsm_jobs_enable_expiry_notification' ); 1833 $expiry_default_options = AWSM_Job_Openings_Form::get_expired_notification_content(); 1834 $enable_expiry = get_option( 'awsm_jobs_enable_expiry_notification', $expiry_default_options['enable'] ); 1834 1835 if ( $new_status !== 'publish' && $new_status !== $old_status && $post->post_type === 'awsm_job_openings' ) { 1835 1836 if ( $new_status === 'expired' ) { … … 1844 1845 $reply_to = get_option( 'awsm_jobs_reply_to_notification' ); 1845 1846 $cc = get_option( 'awsm_jobs_author_hr_notification' ); 1846 $subject = get_option( 'awsm_jobs_author_notification_subject' );1847 $content = get_option( 'awsm_jobs_author_notification_content' );1847 $subject = get_option( 'awsm_jobs_author_notification_subject', $expiry_default_options['subject'] ); 1848 $content = get_option( 'awsm_jobs_author_notification_content', $expiry_default_options['content'] ); 1848 1849 $html_template = get_option( 'awsm_jobs_notification_author_mail_template' ); 1849 1850 $author_id = get_post_field( 'post_author', $job_id );
Note: See TracChangeset
for help on using the changeset viewer.