( ! ) 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.0008484424require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.30644105160require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.31064133872include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.31064133872get_header( $name = ???, $args = ??? ).../archive.php:19
60.31064134088locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.31064134184load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.31094134728require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.31104142136wp_head( ).../header.php:18
100.31104142136do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.31104142352WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.31104142352WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.31134147432wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.31134147432do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.31134147648WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.31134147648WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.31144273952twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.31164275472wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.31164275472WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.31164275472WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.31164275472_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.31164275792wp_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.31164276544trigger_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.0008484424require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.30644105160require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.31064133872include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.31064133872get_header( $name = ???, $args = ??? ).../archive.php:19
60.31064134088locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.31064134184load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.31094134728require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.31104142136wp_head( ).../header.php:18
100.31104142136do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.31104142352WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.31104142352WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.31134147432wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.31134147432do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.31134147648WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.31134147648WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.31144273952twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.33664276888wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.33664276888WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.33664276888WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.33664276888_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.33664277208wp_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.33664277432trigger_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

异常/bin/sh^M: bad interpreter: No such file or directory。

在Linux中执行.sh脚本,异常/bin/sh^M: bad interpreter: No such file or directory。

分析:这是不同系统编码格式引起的:在windows系统中编辑的.sh文件可能有不可见字符,所以在Linux系统下执行会报以上异常信息。
解决:1)在windows下转换:
利用一些编辑器如UltraEdit或EditPlus等工具先将脚本编码转换,再放到Linux中执行。转换方式如下(UltraEdit):File–>Conversions–>DOS->UNIX即可。
2)也可在Linux中转换:
首先要确保文件有可执行权限
#sh>chmod a+x filename

然后修改文件格式
#sh>vi filename

利用如下命令查看文件格式
:set ff 或 :set fileformat

可以看到如下信息
fileformat=dos 或 fileformat=unix

利用如下命令修改文件格式
:set ff=unix 或 :set fileformat=unix

:wq (存盘退出)

最后再执行文件
#sh>./filename