-
graphiczen
My company develops sites for a client and we use GeneratePress for most of them. I received the following from one of my clients devs: While testing a site that uses GeneratePress 3.6.0 with WP 6.9-RC2 I noticed that a deprecation notice is output related caused by a call to wp_script_add_data() with the ‘conditional’ argument:
Function WP_Dependencies->add_data() was called with an argument that is deprecated since version 6.9.0!
IE conditional comments are ignored by all supported browsers.The call in question is from lines 70-73 of inc/general.php:
if ( function_exists( ‘wp_script_add_data’ ) ) {
wp_enqueue_script( ‘generate-classlist’, $dir_uri . “/assets/js/classList{$suffix}.js”, array(), GENERATE_VERSION, true );
wp_script_add_data( ‘generate-classlist’, ‘conditional’, ‘lte IE 11’ );
}I don’t know what you should do, because I don’t know your codebase very well, just wanted to bring this to your attention so that you can make whatever change you feel is appropriate before WP 6.9 is released on Dec 2.
For more info, see:
https://make.wordpress.org/core/2025/11/19/legacy-internet-explorer-code-removed/
https://core.trac.wordpress.org/ticket/63821
https://make.wordpress.org/core/6-9/
- You must be logged in to reply to this topic.