Title: Deprecated: Function WP_Dependencies-&gt;add_data() with WordPress 6.9
Last modified: December 3, 2025

---

# Deprecated: Function WP_Dependencies->add_data() with WordPress 6.9

 *  [Andreas Panag](https://wordpress.org/support/users/andrewp-2/)
 * (@andrewp-2)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/deprecated-function-wp_dependencies-add_data-with-wordpress-6-9/)
 * After updating to **WordPress 6.9**, the **Twenty Seventeen** theme triggers 
   a deprecation notice related to IE-conditional styles and scripts. 
   These conditional
   comments are no longer supported in WordPress 6.9, resulting in repeated warnings
   in the PHP logs and on screen (when WP_DEBUG is enabled).
 * `Deprecated: Function WP_Dependencies->add_data() was called with an argument
   
   that is deprecated since version 6.9.0! IE conditional comments are ignoredby
   all supported browsers.in /wp-includes/functions.php on line 6131The issue originates
   from:
 * `wp-content/themes/twentyseventeen/functions.php`
 * Specifically the following block:
 * `// Register the Internet Explorer 9 specific stylesheet, to fix display issues
   in the Customizer.
   if ( is_customize_preview() ) {wp_register_style( 'twentyseventeen-
   ie9', get_theme_file_uri( '/assets/css/ie9.css' ), array( 'twentyseventeen-style'),'
   20161202' );wp_style_add_data( 'twentyseventeen-ie9', 'conditional', 'IE 9' );}
 * `// Register the Internet Explorer 8 specific stylesheet.
   wp_register_style( '
   twentyseventeen-ie8', get_theme_file_uri( '/assets/css/ie8.css' ), array( 'twentyseventeen-
   style' ), '20161202' );wp_style_add_data( 'twentyseventeen-ie8', 'conditional','
   lt IE 9' );
 * `// Register the html5 shiv.
   wp_register_script( 'html5', get_theme_file_uri('/
   assets/js/html5.js' ), array(), '20161020' );wp_script_add_data( 'html5', 'conditional','
   lt IE 9' );
 * The theme should **remove or hard-deprecate** all IE-specific stylesheet and 
   script registrations.
 * This includes:
    - ie8.css
    - ie9.css
    - html5.js
    - Removal of wp_style_add_data() / wp_script_add_data() with ‘conditional’ usage.
 *  -  This topic was modified 6 months, 1 week ago by [Andreas Panag](https://wordpress.org/support/users/andrewp-2/).

Viewing 1 replies (of 1 total)

 *  [anthonyod](https://wordpress.org/support/users/anthonyod/)
 * (@anthonyod)
 * [6 months ago](https://wordpress.org/support/topic/deprecated-function-wp_dependencies-add_data-with-wordpress-6-9/#post-18747915)
 * Can you confirm that I should manually remove these blocks from the functions.
   php file?

Viewing 1 replies (of 1 total)

The topic ‘Deprecated: Function WP_Dependencies->add_data() with WordPress 6.9’ 
is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentyseventeen/4.1/screenshot.
   png)
 * Twenty Seventeen
 * [Support Threads](https://wordpress.org/support/theme/twentyseventeen/)
 * [Active Topics](https://wordpress.org/support/theme/twentyseventeen/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentyseventeen/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentyseventeen/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [anthonyod](https://wordpress.org/support/users/anthonyod/)
 * Last activity: [6 months ago](https://wordpress.org/support/topic/deprecated-function-wp_dependencies-add_data-with-wordpress-6-9/#post-18747915)
 * Status: not a support question