( ! ) 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.0000484584{main}( ).../index.php:0
20.0000484936require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.08924105168require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.08974133880include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:132
50.08974133880get_header( $name = ???, $args = ??? ).../archive.php:19
60.08974134096locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.08974134192load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.08974134736require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.08994142144wp_head( ).../header.php:18
100.08994142144do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.08994142360WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.08994142360WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.09014147440wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.09014147440do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.09014147656WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.09014147656WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.09024273960twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.09034275480wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.09034275480WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.09034275480WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.09034275480_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.09044275800wp_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.09044276552trigger_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.0000484584{main}( ).../index.php:0
20.0000484936require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.08924105168require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.08974133880include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:132
50.08974133880get_header( $name = ???, $args = ??? ).../archive.php:19
60.08974134096locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.08974134192load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.08974134736require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.08994142144wp_head( ).../header.php:18
100.08994142144do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.08994142360WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.08994142360WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.09014147440wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.09014147440do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.09014147656WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.09014147656WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.09024273960twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.11684276896wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.11684276896WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.11684276896WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.11684276896_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.11684277216wp_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.11694277440trigger_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