Plugin Directory

Changeset 2751235


Ignore:
Timestamp:
07/03/2022 11:12:44 AM (4 years ago)
Author:
wphrmanager
Message:

Fixed Minor Issues
Fixed Email Issue

Location:
wp-hr-manager/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-hr-manager/trunk/includes/functions.php

    r2711766 r2751235  
    20222022 */
    20232023function wphr_mail( $to, $subject, $message, $headers = '', $attachments = [], $custom_headers = [] ) {
    2024     if(is_array($to)){
    2025         return;
    2026     }
     2024   
    20272025    if ( defined( 'WPHR_IS_IMPORTING' ) && WPHR_IS_IMPORTING ) {
    20282026        return true;
     
    20822080
    20832081    ob_start();
    2084     $is_mail_sent = wp_mail( $to, $subject, $message, $headers, $attachments );
     2082     if(isset($to[0]) && !empty($to[0])){
     2083        $is_mail_sent = wp_mail( $to[0], $subject, $message, $headers, $attachments );
     2084    }else{
     2085        $is_mail_sent = wp_mail( $to, $subject, $message, $headers, $attachments );
     2086    }
    20852087    $debug_log = ob_get_clean();
    20862088    if ( ! $is_mail_sent ) {
  • wp-hr-manager/trunk/modules/hrm/includes/class-form-handler.php

    r2698983 r2751235  
    529529        }
    530530
    531         if (!in_array($leave_period, array($cur_year - 1, $cur_year, $cur_year + 1))) {
     531        if (!in_array(date('Y',strtotime($leave_period)), array($cur_year - 1, $cur_year, $cur_year + 1))) {
    532532            $errors[] = 'invalid-period';
    533533        }
  • wp-hr-manager/trunk/modules/hrm/includes/functions-employee.php

    r2631006 r2751235  
    508508
    509509        do_action( 'wphr_hr_delete_employee', $employee_wp_user_id, $hard );
    510 
    511         if ( $hard ) {
     510        $ver = (float)phpversion();
     511        if ( $hard || $ver >= 8.0 ) {
    512512            \WPHR\HR_MANAGER\HRM\Models\Employee::where( 'user_id', $employee_wp_user_id )->withTrashed()->forceDelete();
    513513            $wp_user = get_userdata( $employee_wp_user_id );
  • wp-hr-manager/trunk/readme.txt

    r2711766 r2751235  
    55Tags: HR, Human Resources, Attendance Management, Recruitment, Leave, Employee Self Service, ESS, People Management
    66Requires at least: 5.0
    7 Tested up to: 5.9.2
     7Tested up to: 6.0
    88Stable tag: 3.0.5
    99License: GPLv2
     
    191191
    192192== Changelog ==
     193= v3.0.6-> 03 July 2022
     194* Fixed Email Issue
     195*Fixed other Minor issues
    193196
    194197= v3.0.5-> 19 April 2022
     
    399402
    400403== Upgrade Notice ==
     404= v3.0.6-> 03 July 2022
     405* Fixed Email Issue
     406*Fixed other Minor Issues
     407
    401408= v3.0.5-> 19 April 2022
    402409* Fixed Minor Issues
  • wp-hr-manager/trunk/wp-hr-manager.php

    r2711766 r2751235  
    77 * Author: Black and White Digital Ltd
    88 * Author URI: http://www.wphrmanager.com
    9  * Version: 3.0.5
     9 * Version: 3.0.6
    1010 * Requires at least: 5
    1111 * License: GPLv2
Note: See TracChangeset for help on using the changeset viewer.