( ! ) 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.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10294094136require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.10344123128include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.10344123128get_header( $name = ???, $args = ??? ).../single.php:10
60.10344123344locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.10344123440load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.10344123984require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.10364131392wp_head( ).../header.php:18
100.10364131392do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.10364131608WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.10364131608WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10374135024wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10374135024do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10374135240WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10374135240WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10384137128twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.10394138648wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.10394138648WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.10394138648WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.10404138648_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.10404144600wp_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.10404264136trigger_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.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10294094136require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.10344123128include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.10344123128get_header( $name = ???, $args = ??? ).../single.php:10
60.10344123344locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.10344123440load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.10344123984require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.10364131392wp_head( ).../header.php:18
100.10364131392do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.10364131608WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.10364131608WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10374135024wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10374135024do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10374135240WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10374135240WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10384137128twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.13244265240wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.13244265240WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.13244265240WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.13244265240_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.13244265560wp_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.13254265784trigger_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

shell 比较两个字符串

比较两个字符串是否相等的办法是:

if [ “$test”x = “test”x ]; then

 

这里的关键有几点:

1 使用单个等号

2 注意到等号两边各有一个空格:这是unix shell的要求

3 注意到”$test”x最后的x,这是特意安排的,因为当$test为空的时候,上面的表达式就变成了x = testx,显然是不相等的。而如果没有这个x,表达式就会报错:[: =: unary operator expected

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.