[wp-trac] [WordPress Trac] #56699: Remove IE specific checks from default themes

WordPress Trac noreply at wordpress.org
Fri Sep 30 18:45:26 UTC 2022


#56699: Remove IE specific checks from default themes
---------------------------+---------------------
 Reporter:  desrosj        |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  6.2
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:
---------------------------+---------------------

Comment (by desrosj):

 One thing I forgot to mention.

 It's possible that child themes are registering their own styles and
 scripts with these as dependencies. Removing these handles will result in
 those no longer being enqueued.

 There are two approaches that can be taken here:

 - Continue to enqueue those scripts/styles in the default theme without
 specifying a source. This will make the script/style handle an alias, and
 the scripts/styles will continue to load.
 - Just remove the handles entirely. The scripts and styles outside of the
 default themes will no longer be loaded. But this could be OK because they
 are targeting old browsers anyway.

 A `__doing_it_wrong()` or deprecated notice could be used here in some
 way.

 There's also the possibility that themes are referencing these files
 directly. Removing them could result in 404 errors. I think this is likely
 a lower risk than the first issue I detailed, but still worth considering.

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


More information about the wp-trac mailing list