[wp-trac] [WordPress Trac] #64174: deprecation notice for conditional scripts

WordPress Trac noreply at wordpress.org
Mon Nov 10 15:01:22 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:  2nd-opinion   |     Focuses:
--------------------------+------------------------------

Comment (by WFMattR):

 I saw the same issue -- it seems to be caused by some of the older themes,
 possibly twentyeleven through twentyseventeen. For example, a few lines in
 twentyseventeen's functions.php:

 {{{wp_style_add_data( 'twentyseventeen-ie9', 'conditional', 'IE 9' );}}}

 {{{wp_style_add_data( 'twentyseventeen-ie8', 'conditional', 'lt IE 9'
 );}}}

 {{{wp_script_add_data( 'html5', 'conditional', 'lt IE 9' );}}}

 The message occurs when viewing the front end. When I switch to a newer
 theme like twentytwentyfour, the deprecation message is not logged.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64174#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list