( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484072{main}( ).../index.php:0
20.0000484424require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10964097992require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.11014127096include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.11014127096get_header( $name = ???, $args = ??? ).../archive.php:19
60.11014127312locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.11014127408load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.11014127952require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.11024135360wp_head( ).../header.php:18
100.11024135360do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.11024135576WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.11024135576WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.11044138992wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.11044138992do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.11044139208WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.11044139208WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.11054265512twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.11064267032wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.11064267032WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.11064267032WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.11064267032_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.11064267352wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.11074268104trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484072{main}( ).../index.php:0
20.0000484424require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10964097992require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.11014127096include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.11014127096get_header( $name = ???, $args = ??? ).../archive.php:19
60.11014127312locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.11014127408load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.11014127952require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.11024135360wp_head( ).../header.php:18
100.11024135360do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.11024135576WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.11024135576WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.11044138992wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.11044138992do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.11044139208WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.11044139208WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.11054265512twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.19374269208wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.19374269208WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.19374269208WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.19374269208_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.19374269528wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.19374269752trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

Get Working day difference for 2 dates

CREATE DEFINER=`root`@`%` FUNCTION `getworkdaydiff`(b date, a date) RETURNS int(11)
DETERMINISTIC
COMMENT ‘Get Working day difference for 2 dates’
BEGIN
DECLARE freedays int;
SET freedays = 0;


SET @x = DATEDIFF(b, a);
IF @x<0 THEN
SET @m = a;
SET a = b;
SET b = @m;
SET @m = -1;
ELSE
SET @m = 1;
END IF;
SET @x = abs(@x) + 1;
/* days in first week */
SET @w1 = WEEKDAY(a)+1;
SET @wx1 = 8-@w1;
IF @w1>5 THEN
SET @w1 = 0;
ELSE
SET @w1 = 6-@w1;
END IF;
/* days in last week */
SET @wx2 = WEEKDAY(b)+1;
SET @w2 = @wx2;
IF @w2>5 THEN
SET @w2 = 5;
END IF;
/* summary */
SET @weeks = (@x-@wx1-@wx2)/7;
SET @noweekends = (@weeks*5)+@w1+@w2;
SET @result = @noweekends-freedays;
RETURN @result*@m;
END