( ! ) 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.09874098392require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.09974127496include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.09974127496get_header( $name = ???, $args = ??? ).../archive.php:19
60.09974127712locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.09974127808load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.09984128352require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.09994135760wp_head( ).../header.php:18
100.09994135760do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.09994135976WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.09994135976WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10014139392wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10014139392do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10014139608WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10014139608WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10034265912twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.10044267432wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.10044267432WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.10044267432WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.10044267432_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.10044267752wp_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.10054268504trigger_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.09874098392require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.09974127496include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.09974127496get_header( $name = ???, $args = ??? ).../archive.php:19
60.09974127712locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.09974127808load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.09984128352require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.09994135760wp_head( ).../header.php:18
100.09994135760do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.09994135976WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.09994135976WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10014139392wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10014139392do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10014139608WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10014139608WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10034265912twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.12544269608wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.12544269608WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.12544269608WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.12544269608_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.12544269928wp_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.12554270152trigger_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文件,双击确认导入注册表即可。