Changeset 2751235
- Timestamp:
- 07/03/2022 11:12:44 AM (4 years ago)
- Location:
- wp-hr-manager/trunk
- Files:
-
- 5 edited
-
includes/functions.php (modified) (2 diffs)
-
modules/hrm/includes/class-form-handler.php (modified) (1 diff)
-
modules/hrm/includes/functions-employee.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
wp-hr-manager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-hr-manager/trunk/includes/functions.php
r2711766 r2751235 2022 2022 */ 2023 2023 function wphr_mail( $to, $subject, $message, $headers = '', $attachments = [], $custom_headers = [] ) { 2024 if(is_array($to)){ 2025 return; 2026 } 2024 2027 2025 if ( defined( 'WPHR_IS_IMPORTING' ) && WPHR_IS_IMPORTING ) { 2028 2026 return true; … … 2082 2080 2083 2081 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 } 2085 2087 $debug_log = ob_get_clean(); 2086 2088 if ( ! $is_mail_sent ) { -
wp-hr-manager/trunk/modules/hrm/includes/class-form-handler.php
r2698983 r2751235 529 529 } 530 530 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))) { 532 532 $errors[] = 'invalid-period'; 533 533 } -
wp-hr-manager/trunk/modules/hrm/includes/functions-employee.php
r2631006 r2751235 508 508 509 509 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 ) { 512 512 \WPHR\HR_MANAGER\HRM\Models\Employee::where( 'user_id', $employee_wp_user_id )->withTrashed()->forceDelete(); 513 513 $wp_user = get_userdata( $employee_wp_user_id ); -
wp-hr-manager/trunk/readme.txt
r2711766 r2751235 5 5 Tags: HR, Human Resources, Attendance Management, Recruitment, Leave, Employee Self Service, ESS, People Management 6 6 Requires at least: 5.0 7 Tested up to: 5.9.27 Tested up to: 6.0 8 8 Stable tag: 3.0.5 9 9 License: GPLv2 … … 191 191 192 192 == Changelog == 193 = v3.0.6-> 03 July 2022 194 * Fixed Email Issue 195 *Fixed other Minor issues 193 196 194 197 = v3.0.5-> 19 April 2022 … … 399 402 400 403 == Upgrade Notice == 404 = v3.0.6-> 03 July 2022 405 * Fixed Email Issue 406 *Fixed other Minor Issues 407 401 408 = v3.0.5-> 19 April 2022 402 409 * Fixed Minor Issues -
wp-hr-manager/trunk/wp-hr-manager.php
r2711766 r2751235 7 7 * Author: Black and White Digital Ltd 8 8 * Author URI: http://www.wphrmanager.com 9 * Version: 3.0. 59 * Version: 3.0.6 10 10 * Requires at least: 5 11 11 * License: GPLv2
Note: See TracChangeset
for help on using the changeset viewer.