( ! ) 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.0001484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.09944089640require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.10064118632include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.10064118632get_header( $name = ???, $args = ??? ).../single.php:10
60.10064118848locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.10064118944load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.10064119488require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.10084126896wp_head( ).../header.php:18
100.10084126896do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.10084127112WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.10084127112WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10094130528wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10094130528do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10094130744WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10094130744WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10114132632twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.10124134152wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.10124134152WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.10124134152WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.10124134152_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.10124134472wp_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.10124140856trigger_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.0001484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.09944089640require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.10064118632include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.10064118632get_header( $name = ???, $args = ??? ).../single.php:10
60.10064118848locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.10064118944load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.10064119488require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.10084126896wp_head( ).../header.php:18
100.10084126896do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.10084127112WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.10084127112WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10094130528wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10094130528do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10094130744WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10094130744WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10114132632twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.12534141960wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.12534141960WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.12534141960WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.12534141960_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.12534142280wp_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.12544142504trigger_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

XHTML MP Images

Displaying an Image in XHTML MP



The <img> tag is used to display an image in XHTML MP. This is the same as in HTML. WAP browsers will display the text assigned to the alt attribute of the <img> tag if it cannot display the image for reasons such as file not found or image format not supported. The height and width attributes of the <img> tag, as their names suggested, are used to specify the height and width (in pixels) of an image’s display area. You can make use of these two attributes to scale up or down the size of an image on the screen.


Besides the old WBMP image format, WAP 2.0 wireless devices should be able to support image formats commonly used on the web such as GIF, animated GIF, JPG, and PNG. However, this is device-specific. Some WAP 2.0 wireless devices can only support a subset of the above image formats.


One simple way to find out whether a particular image format is supported on a wireless device is to check the accept HTTP header, like what we have done in the “Choosing MIME Types Dynamically” section of this XHTML MP tutorial. For example, if “image/gif”, “image/jpg” and “image/png” are found in the accept HTTP header, it means the wireless device supports the GIF, JPG and PNG image formats.


The following example demonstrates how to display an image in XHTML MP:


<?xml version=”1.0″?>
<!DOCTYPE html PUBLIC “-//WAPFORUM//DTD XHTML Mobile 1.0//EN” “http://www.wapforum.org/DTD/xhtml-mobile10.dtd”>

<html xmlns=”http://www.w3.org/1999/xhtml”>
  <head>
    <title>Image in XHTML MP</title>
  </head>

  <body>
    <p>
      <img src=”smile.gif” alt=”Smile” height=”62″ width=”60″ /><br/>
      Hello, welcome to our XHTML MP tutorial.
    </p>
  </body>
</html>




The result of the above XHTML MP code in some WAP browsers is shown below:













Sony Ericsson T610



Nokia Mobile Browser 4.0




If the image file does not exist, the result of the same XHTML MP code will become:













Sony Ericsson T610



Nokia Mobile Browser 4.0



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.