Plugin Directory

Changeset 2946388


Ignore:
Timestamp:
08/02/2023 06:11:10 AM (3 years ago)
Author:
awsmin
Message:

V 3.4.1 - 2023-08-01

  • Fixed a bug in notifications
Location:
wp-job-openings/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-job-openings/trunk/inc/class-awsm-job-openings-form.php

    r2945786 r2946388  
    670670    }
    671671
     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
    672681    /**
    673682     * Get the notification options.
     
    679688     */
    680689    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
    684695        if ( $type === 'applicant' ) {
    685696            $options = array(
     
    705716        } elseif ( $type === 'author' ) {
    706717            $options = array(
    707                 'enable'        => get_option( 'awsm_jobs_enable_expiry_notification' ),
     718                'enable'        => get_option( 'awsm_jobs_enable_expiry_notification', $expired_options['enable'] ),
    708719                'from'          => get_option( 'awsm_jobs_author_from_email_notification', $admin_email ),
    709720                'reply_to'      => get_option( 'awsm_jobs_reply_to_notification' ),
    710721                'to'            => get_option( 'awsm_jobs_author_to_notification', '{author-email}' ),
    711722                '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'] ),
    714725                'html_template' => get_option( 'awsm_jobs_notification_author_mail_template' ),
    715726            );
  • wp-job-openings/trunk/languages/wp-job-openings.pot

    r2945786 r2946388  
    88"Content-Transfer-Encoding: 8bit\n"
    99"Language-Team: AWSM innovations <hello@awsm.in>\n"
    10 "POT-Creation-Date: 2023-07-31 08:31+0000\n"
     10"POT-Creation-Date: 2023-08-01 09:28+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"
     
    7272msgstr ""
    7373
    74 #: wp-job-openings.php:497, wp-job-openings.php:517, wp-job-openings.php:762, wp-job-openings.php:1977, admin/templates/meta/job-status.php:54
     74#: 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
    7575msgid "Expired"
    7676msgstr ""
  • wp-job-openings/trunk/readme.txt

    r2945786 r2946388  
    5858* [PRO Pack](https://wpjobopenings.com/pro-pack/) (PREMIUM)
    5959* [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)
    6061
    6162= WP Job Openings PRO Features =
     
    102103
    103104== Changelog ==
     105
     106= V 3.4.1 - 2023-08-01 =
     107* Bug fixes
    104108
    105109= V 3.4 - 2023-07-31 =
  • wp-job-openings/trunk/wp-job-openings.php

    r2945786 r2946388  
    66 * Author: AWSM Innovations
    77 * Author URI: https://awsm.in/
    8  * Version: 3.4
     8 * Version: 3.4.1
    99 * Requires at least: 4.8
    1010 * Requires PHP: 5.6
     
    3838}
    3939if ( ! defined( 'AWSM_JOBS_PLUGIN_VERSION' ) ) {
    40     define( 'AWSM_JOBS_PLUGIN_VERSION', '3.4' );
     40    define( 'AWSM_JOBS_PLUGIN_VERSION', '3.4.1' );
    4141}
    4242if ( ! defined( 'AWSM_JOBS_UPLOAD_DIR_NAME' ) ) {
     
    18311831     */
    18321832    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'] );
    18341835        if ( $new_status !== 'publish' && $new_status !== $old_status && $post->post_type === 'awsm_job_openings' ) {
    18351836            if ( $new_status === 'expired' ) {
     
    18441845                    $reply_to      = get_option( 'awsm_jobs_reply_to_notification' );
    18451846                    $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'] );
    18481849                    $html_template = get_option( 'awsm_jobs_notification_author_mail_template' );
    18491850                    $author_id     = get_post_field( 'post_author', $job_id );
Note: See TracChangeset for help on using the changeset viewer.