( ! ) 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.0001484424require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.09784095736require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.09834124448include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.09834124448get_header( $name = ???, $args = ??? ).../archive.php:19
60.09834124664locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.09834124760load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.09834125304require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.09844132712wp_head( ).../header.php:18
100.09844132712do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.09844132928WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.09844132928WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.09864138008wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.09864138008do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.09864138224WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.09864138224WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.09884264528twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.09894266048wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.09894266048WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.09894266048WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.09894266048_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.09894266368wp_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.09904267120trigger_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.0001484424require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.09784095736require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.09834124448include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.09834124448get_header( $name = ???, $args = ??? ).../archive.php:19
60.09834124664locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.09834124760load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.09834125304require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.09844132712wp_head( ).../header.php:18
100.09844132712do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.09844132928WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.09844132928WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.09864138008wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.09864138008do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.09864138224WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.09864138224WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.09884264528twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.12344267464wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.12344267464WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.12344267464WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.12344267464_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.12354267784wp_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.12354268008trigger_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

目錄許可權設置命令:chmod

目錄許可權設置命令:chmod

這是Linux系統管理員最常用到的命令之一,它用於改變檔或目錄的訪問許可權。該命令有兩種用法:

用包含字母和操作符運算式的文字設定法

其語法格式為:chmod [who] [opt] [mode] /目錄名

其中who表示對象,是以下字母中的一個或組合:

u:表示檔所有者
g:表示同組用戶
o:表示其他用戶
a:表示所有用戶
opt則是代表操作,可以為:
+:添加某個許可權
:取消某個許可權
=:賦予給定的許可權,並取消原有的許可權
mode則代表許可權:
r:可讀
w:可寫
x:可執行

例如:為同組用戶增加對檔a.txt的讀寫許可權:

chmod g+rw a.txt

用數字設定法

而數字設定法則更為簡單:chmod [mode] 檔案名

關鍵是mode的取值,一開始許多初學者會被搞糊塗,其實很簡單,我們將rwx看成二進位數,如果有則有1表示,沒有則有0表示,那麼rwx r-x r- –則可以表示成為:

111 101 100

再將其每三位轉換成為一個十進位數,就是754

例如,我們想讓a.txt這個檔的許可權為:

自己 同組用戶 其他用戶
可讀 是 是 是
可寫 是 是 可執行

那麼,我們先根據上表得到許可權串為:rw-rw-r–,那麼轉換成二進位數就是110 110 100,再每三位轉換成為一個十進位數,就得到664,因此我 們執行命令:

chmod 664 a.txt