[wp-trac] [WordPress Trac] #64174: deprecation notice for conditional scripts (was: WP_DEBUG and WP_DEBUG_LOG)
WordPress Trac
noreply at wordpress.org
Thu Oct 30 20:56:40 UTC 2025
#64174: deprecation notice for conditional scripts
--------------------------+------------------------------
Reporter: hupe13 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: close | Focuses:
--------------------------+------------------------------
Changes (by sabernhardt):
* keywords: => close
* focuses: php-compatibility =>
Old description:
> WordPress 6.9 beta 2, php 8.3
>
> If is defined in wp-config.php:
>
> {{{
> define( 'WP_DEBUG', true );
> define( 'WP_DEBUG_LOG', true );
> }}}
>
> I get a php warning:
>
> PHP Deprecated: 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. in
> /www/htdocs/wp-includes/functions.php on line 6131
New description:
WordPress 6.9 beta 2, php 8.3
If is defined in wp-config.php:
{{{
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
}}}
I get a php warning:
`PHP Deprecated: 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. in /.../wp-
includes/functions.php on line 6131`
--
Comment:
The message is intentionally added to tell theme and plugin developers
that core deprecated the 'conditional' argument for scripts and styles in
#63821. When the active theme and/or a plugin registers an outdated
script, `WP_DEBUG` will show or log the message.
I'll use the 'close' keyword but leave the ticket open. According to
comment:29:ticket:63821
> We can always commit with deprecation notices, and if they raise too
many flags during beta/RC we can remove it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64174#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list