( ! ) 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.06704098504require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.07274127608include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.07274127608get_header( $name = ???, $args = ??? ).../archive.php:19
60.07274127824locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.07274127920load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.07334128464require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.07354135872wp_head( ).../header.php:18
100.07354135872do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.07354136088WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.07354136088WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.07364139504wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.07364139504do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.07374139720WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.07374139720WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.07384266024twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.07394267544wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.07394267544WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.07394267544WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.07394267544_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.07394267864wp_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.07404268616trigger_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.06704098504require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.07274127608include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.07274127608get_header( $name = ???, $args = ??? ).../archive.php:19
60.07274127824locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.07274127920load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.07334128464require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.07354135872wp_head( ).../header.php:18
100.07354135872do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.07354136088WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.07354136088WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.07364139504wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.07364139504do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.07374139720WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.07374139720WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.07384266024twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.10154269720wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.10154269720WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.10154269720WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.10154269720_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.10154270040wp_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.10164270264trigger_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

清除所有.svn目录 linux windows

从网上下载的开源项目,想把它集成到自己的系统中,需要先把里面的版本控制文件删除掉。

这里转载一下网上找到的删除方法,以备后用

一、在linux下

删除这些目录是很简单的,命令如下
find . -type d -name “.svn”|xargs rm -rf

或者

find . -type d -iname “.svn” -exec rm -rf {} \;

全部搞定。(http://tech.techweb.com.cn/redirect.php?fid=26&tid=205673&goto=nextnewset)

二、在windows下用以下法子:

1、在项目平级的目录,执行dos命令:
xcopy project_dir project_dir_1 /s /i

2、或者在项目根目录执行以下dos命令
for /r . %%a in (.) do @if exist “%%a\.svn” rd /s /q “%%a\.svn”

其实第二种方法可以用来干很多事的,比如把代码中的.svn替换为任意其他文件名并在硬盘根目录下执行,就可以从硬盘上删除所有的这个文件啦。

3、加注册表

Jon Galloway提供了一段注册表代码,可以将”Delete SVN Folders”命名增加到资源管理器的右键上,这样,鼠标点两下就能把选中目录下的所有.svn目录干掉了。Works just great!

代码为:

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@="Delete SVN Folders" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""

将这段代码保存为一个.reg文件,双击确认导入注册表即可。