( ! ) 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.0006484424require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.24114097328require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.24564126040include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.24564126040get_header( $name = ???, $args = ??? ).../archive.php:19
60.24564126256locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.24564126352load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.24574126896require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.24594134304wp_head( ).../header.php:18
100.24594134304do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.24594134520WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.24594134520WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.24614139600wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.24614139600do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.24614139816WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.24614139816WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.24624266120twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.24644267640wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.24644267640WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.24644267640WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.24644267640_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.24644267960wp_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.24644268712trigger_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.0006484424require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.24114097328require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.24564126040include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.24564126040get_header( $name = ???, $args = ??? ).../archive.php:19
60.24564126256locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.24564126352load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.24574126896require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.24594134304wp_head( ).../header.php:18
100.24594134304do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.24594134520WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.24594134520WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.24614139600wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.24614139600do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.24614139816WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.24614139816WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.24624266120twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.27114269056wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.27114269056WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.27124269056WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.27124269056_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.27124269376wp_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.27124269600trigger_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

Android模拟器镜像文件介绍

. Android模拟器采用的是开源工程Qemu,Qemu是Linux 下的著名模拟器

2. kernel-qemu是内核镜像

3. ramdisk.img是文件系统,如果你自己编译了android的源代码,它的内容为
out/debug/target/product/generic/root,mount到android的/

4. system.img主要存放系统数据,android启动后mount到/system
它包含的内容为out/debug/target/product/generic/system

5. 一般来说我们不直接使用userdata.img,而是使用userdata_qemu.data,用来存放用户数据,可读写,android启动后mount到 /data。只有使用-wipe-data参数启动模拟器是时候才会用到userdata.img,它会使用userdata.img的内容覆盖 userdata-qemu.img
userdata.img的内容为out/debug/target/product/generic/system

6. 如果您没有编译android的源代码,我们也可以知道ramdisk.img、system.img和userdata.img的内容。
1). 查看ramdisk.img内容
terminal中进入sdk的images目录,执行file *


我看可以看到ramdisk是一个gzip文件,我们可以解压这个gzip文件,解压前先备份一下
然后在terminal中运行
localhost:images wuvincent$ gzip -d -S .img ramdisk.img
然后运行
localhost:images wuvincent$ file ramdisk
执行后会显示这个文件是一个cpio文件,于是我们可以把它解压到一个目录下,依次执行如下命令
localhost:images wuvincent$ mkdir ramdiskdir
localhost:images wuvincent$ cd ramdiskdir
localhost:ramdiskdir wuvincent$ cpio -idmv <../ramdisk
我们就可以进入ramdiskdir看到ramdisk.img的内容了。
其中最主要的几个文件时init init.rc init.goldfish.rc
2). 查看system.img和userdata-qemu.img內容
terminal中進入sdk的tools目錄下運行adb shell
localhost:tools wuvincent$ adb shell
adb server is out of date.  killing…
* daemon started successfully *
#
然後運行cd /和ls -l,執行結果如下:

 


我們可以看到ramdisk.img mount到/,init init.rc init.goldfish.rc都在/目錄下。
而/system就是system.img mount後的目錄,/data 就是userdata-qemu.img mount後的目錄,大家可以進入看看內容。

我們也可以在terminal中運行mount命令查看文件系統mount情況。

原文:http://www.devdiv.com/home.php?mod=space&uid=1&do=blog&id=1488