Make WordPress Core

Opened 3 years ago

Closed 3 months ago

Last modified 3 months ago

#58836 closed enhancement (fixed)

Remove IE specific checks from more default themes

Reported by: sabernhardt's profile sabernhardt Owned by: joedolson's profile joedolson
Milestone: 6.9 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch reporter-feedback commit
Focuses: Cc:

Description (last modified by joedolson)

Follow-up to #56699

Remove IE conditional statements and register external resources without enqueuing them for four more themes:

  • Twenty Eleven
  • Twenty Twelve
  • Twenty Fourteen
  • Twenty Sixteen

Also completes the removal these resources on

  • Twenty Thirteen
  • Twenty Fifteen
  • Twenty Seventeen

Attachments (1)

child-themes-11-12-14-16.zip (536.8 KB) - added by sabernhardt 16 months ago.
Child themes for testing Twenty Eleven, Twenty Twelve, Twenty Fourteen and Twenty Sixteen

Download all attachments as: .zip

Change History (51)

This ticket was mentioned in Slack in #core by oglekler. View the logs.


2 years ago

#2 @oglekler
2 years ago

  • Keywords reporter-feedback added; has-patch removed

This ticket was discussed during a bug scrub.

@sabernhardt does there is still work to be done? If so, please clarify the scope, because #56699 is closed and had the same themes mentioned.

Add props to @mukesh27

#3 @sabernhardt
2 years ago

  • Milestone changed from 6.4 to Future Release

#4 @sabernhardt
22 months ago

  • Keywords reporter-feedback removed
  • Summary changed from Remove IE specific checks from more default themes (6.4) to Remove IE specific checks from more default themes

#56699 only committed changes to Twenty Thirteen, Twenty Fifteen and Twenty Seventeen.

The remaining pull requests on that ticket seem close to ready, but I still have not created child themes to test them.

  • PR 3474 is probably closer to how Twenty Eleven should be changed than the other PR, though I would prefer to leave the readme.txt and html5.js intact. That can be refreshed now that [57886] is committed. Removing the IE7 styles would also fix #46771.
  • PR 4642 edits Twenty Twelve.
  • PR 4644 edits Twenty Fourteen.
  • PR 4658 edits Twenty Sixteen.

#5 @karmatosed
19 months ago

  • Keywords dev-feedback added

#6 @karmatosed
19 months ago

@sabernhardt I am coming to this a little colder so wanted to get an update and see how we can progress. It seems we have 3 outstanding PRS that could relate to this - is that correct?

#7 @sabernhardt
19 months ago

  • Keywords needs-testing-info added
  • Owner set to sabernhardt
  • Status changed from new to accepted

I need to create some child themes to test the patches, though I would like to add more changes. Genericons can be updated for Twenty Thirteen through Twenty Sixteen so the EOT file reference does not show console messages in Firefox (and at least the Instagram icon is newer). Plus, I remember planning to request a change to one of the PRs (I found my note later, and it involved Genericons).

Refreshing Twenty Eleven's patch needs to wait until after Tuesday due to version bumps, but the child themes should take longer than that anyway.

Last edited 16 months ago by sabernhardt (previous) (diff)

#8 @karmatosed
18 months ago

Ok that sounds like a solid plan @sabernhardt and I am going to leave this with you for now then.

#9 @karmatosed
18 months ago

  • Keywords needs-patch added; dev-feedback needs-testing-info removed

This ticket was mentioned in PR #7411 on WordPress/wordpress-develop by @sabernhardt.


16 months ago
#10

  • Keywords has-patch added; needs-patch removed

Twenty Eleven changes:

  • Removes IE conditional code and HTML5 Shiv from header.php
  • Removes IE7 and IE8 sections from style.css and rtl.css
  • Removes width from editor-style.css
  • Removes extra clip syntax from functions.php and style.css
  • Removes filter from style.css and dark.css
  • Removes IE8 width: auto rule for full-size and large-size images in style.css

Trac 58836

Props: neychok

This ticket was mentioned in PR #7412 on WordPress/wordpress-develop by @sabernhardt.


16 months ago
#11

Twenty Twelve changes:

  • Registers ie.css without enqueuing it
  • Removes IE conditional code and HTML5 Shiv from header.php
  • Removes width hack from editor-style.css
  • Removes extra clip syntax from custom-header.php

Trac 58836

Props: metodiew

This ticket was mentioned in PR #7414 on WordPress/wordpress-develop by @sabernhardt.


16 months ago
#12

Twenty Fourteen changes:

  • Registers ie.css without enqueuing it
  • Removes IE conditional code and HTML5 Shiv from header.php
  • Removes extra clip syntax from custom-header.php

Trac 58836

Props: metodiew

This ticket was mentioned in PR #7416 on WordPress/wordpress-develop by @sabernhardt.


16 months ago
#13

Twenty Sixteen changes:

  • Registers IE styles and HTML5 script without enqueuing them
  • Removes IE fallback for RGBA colors in customizer.php and adds a semicolon

Trac 58836

Props: metodiew

#14 @sabernhardt
16 months ago

The remaining pull requests from #56699 (that neychok and metodiew made) were mostly ready, but I wanted to connect all of them to this ticket in sequence.

I still should test a bit more before taking them out of draft status and uploading the child themes collection.

I think updating Genericons belongs on a separate ticket (#62128) because that should involve more than IE-related changes.

Last edited 11 months ago by sabernhardt (previous) (diff)

@sabernhardt
16 months ago

Child themes for testing Twenty Eleven, Twenty Twelve, Twenty Fourteen and Twenty Sixteen

#15 @sabernhardt
16 months ago

  • Milestone changed from Future Release to 6.7

This ticket was mentioned in Slack in #core by stoyangeorgiev. View the logs.


16 months ago

#17 @sabernhardt
16 months ago

  • Keywords needs-testing added
  • Milestone changed from 6.7 to 6.8

Moving to 6.8 for more testing

#18 @neychok
14 months ago

Hi there! @metodiew and I are currently attending a contributor day in WordCamp Sofia 2024, and we're eager to help move this ticket forward. Would you be open to our assistance? We'd love to contribute and help make progress on this.

#19 @sabernhardt
11 months ago

#62937 was marked as a duplicate.

This ticket was mentioned in Slack in #core-test by krupajnanda. View the logs.


11 months ago

This ticket was mentioned in Slack in #core by audrasjb. View the logs.


11 months ago

#22 @audrasjb
11 months ago

  • Milestone changed from 6.8 to 6.9

As per today's bug scrub: It appears this ticket is still under review and needs testing. As 6.8 beta 1 is very close, I'm moving it to 6.9. Feel free to move it back to 6.8 if it can be committed by Monday.

#23 @SirLouen
9 months ago

  • Keywords needs-testing-info reporter-feedback added; needs-testing removed

@sabernhardt could you provide clear reproduction steps to understand what to expect before and after this patch?

#24 @SirLouen
9 months ago

  • Keywords needs-test-info added; needs-testing-info removed

Updating keyword to new version.

This ticket was mentioned in Slack in #core-test by boniu91. View the logs.


8 months ago

This ticket was mentioned in Slack in #core by welcher. View the logs.


4 months ago

#27 @welcher
4 months ago

@sabernhardt this was reviewed in the 6.9 bug scrub. Do you think you can continue work on this for 6.9?

This ticket was mentioned in Slack in #core by wildworks. View the logs.


3 months ago

#29 @wildworks
3 months ago

This ticket was reviewed in today's 6.9 Bug Scrub again. This ticket needs testing instructions.

#30 @joedolson
3 months ago

  • Keywords reviewing added; needs-test-info removed
  • Owner changed from sabernhardt to joedolson

There isn't really any practical test for this other than install the themes and verify that there is no change. Hypothetically, you could install a version of IE<10 and verify that the fixes done for those browsers are no longer present, but I think that's unnecessary.

I'm going to take ownership of this ticket to test and prepare for commit. There won't be any need for screenshots, because this will only pass testing if there are no differences.

#31 @joedolson
3 months ago

  • Keywords commit added; reviewing removed

Twenty Eleven: Verified; no IE-specific code present. No deprecation notice thrown in either context, as Twenty Eleven does not use conditional comments.

Twenty Twelve: Verified; deprecation notice thrown before patch, no deprecation notice after. No IE-specific code present.

Twenty Fourteen: Verified; deprecation notice thrown before patch, no deprecation notice after. No IE-specific code present.

Twenty Sixteen: Verified; four deprecation notices thrown before patch, none after. No IE-specific code present.

Marking for commit.

This ticket was mentioned in PR #10327 on WordPress/wordpress-develop by @sabernhardt.


3 months ago
#32

Twenty Seventeen changes:

  • Removes conditional data and source from registered IE stylesheet
  • Replaces contents of ie.css and html5.js
  • Removes HTML5 Shiv credit from readme.txt

Trac 58836

This ticket was mentioned in PR #10328 on WordPress/wordpress-develop by @sabernhardt.


3 months ago
#33

Twenty Fifteen changes:

  • Removes conditional data and source from registered IE stylesheet
  • Replaces contents of ie.css and html5.js
  • Removes HTML5 Shiv credit from readme.txt

Trac 58836

This ticket was mentioned in PR #10329 on WordPress/wordpress-develop by @sabernhardt.


3 months ago
#34

Twenty Thirteen changes:

  • Removes conditional data and source from registered IE stylesheet
  • Replaces contents of ie.css and html5.js
  • Removes HTML5 Shiv credit from readme.txt

Trac 58836

#35 @joedolson
3 months ago

  • Description modified (diff)

Twenty Thirteen: Verified; deprecation error before patch, none after patch; obsolete code removed.

Twenty Fifteen: Verified; 2 deprecation errors before patch, none after patch; obsolete code removed.

Twenty Seventeen: Verified; 2 deprecation errors before patch, none after patch; obsolete code removed.

#36 @joedolson
3 months ago

In 60960:

Twenty Eleven: Remove code and checks for obsolete browsers.

Remove IE specific code from Twenty Eleven. Remove custom IE stylesheet contents, the HTML5 shiv contents (also targeting Safari 4.x and Firefox 3.x), and IE-specific code.

Props desrosj, sabernhardt, karmatosed, neychok, metodiew, mukesh27, aristath, joedolson.
See #58836.

#37 @joedolson
3 months ago

In 60961:

Twenty Twelve: Remove code and checks for obsolete browsers.

Remove IE specific code from Twenty Twelve. Remove custom IE stylesheet contents, the HTML5 shiv contents (also targeting Safari 4.x and Firefox 3.x), and IE-specific code. Change relevant enqueues to registrations.

Props desrosj, sabernhardt, karmatosed, neychok, metodiew, mukesh27, joedolson.
See #58836.

#38 @joedolson
3 months ago

In 60962:

Twenty Thirteen: Remove code and checks for obsolete browsers.

Remove IE specific code from Twenty Thirteen. Remove custom IE stylesheet contents, the HTML5 shiv contents (also targeting Safari 4.x and Firefox 3.x), and IE-specific code.

Props desrosj, sabernhardt, neychok, joedolson.
See #58836.

#39 @joedolson
3 months ago

In 60963:

Twenty Fourteen: Remove code and checks for obsolete browsers.

Remove IE specific code from Twenty Fourteen. Remove custom IE stylesheet contents, the HTML5 shiv contents (also targeting Safari 4.x and Firefox 3.x), and IE-specific code. Change relevant enqueues to registrations.

Props desrosj, sabernhardt, karmatosed, neychok, metodiew, mukesh27, joedolson.
See #58836.

#40 @joedolson
3 months ago

In 60964:

Twenty Fifteen: Remove code and checks for obsolete browsers.

Remove IE specific code from Twenty Fifteen. Remove custom IE stylesheet contents, the HTML5 shiv contents (also targeting Safari 4.x and Firefox 3.x), and IE-specific code.

Props desrosj, sabernhardt, neychok, joedolson.
See #58836.

#41 @joedolson
3 months ago

In 60965:

Twenty Sixteen: Remove code and checks for obsolete browsers.

Remove IE specific code from Twenty Sixteen. Remove custom IE stylesheet contents, the HTML5 shiv contents (also targeting Safari 4.x and Firefox 3.x), and IE-specific code. Change relevant enqueues to registrations.

Props desrosj, sabernhardt, karmatosed, neychok, metodiew, mukesh27, joedolson.
See #58836.

#42 @joedolson
3 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 60966:

Twenty Seventeen: Remove code and checks for obsolete browsers.

Remove IE specific code from Twenty Seventeen. Remove custom IE stylesheet contents, the HTML5 shiv contents (also targeting Safari 4.x and Firefox 3.x), and IE-specific code.

Props desrosj, sabernhardt, neychok, joedolson.
Fixes #58836.

@sabernhardt commented on PR #7411:


3 months ago
#43

Committed in r60960

@sabernhardt commented on PR #7412:


3 months ago
#44

Committed in r60961

@sabernhardt commented on PR #10329:


3 months ago
#45

Committed in r60962

@sabernhardt commented on PR #7414:


3 months ago
#46

Committed in r60963

@sabernhardt commented on PR #10328:


3 months ago
#47

Committed in r60964

@sabernhardt commented on PR #7416:


3 months ago
#48

Committed in r60965

@sabernhardt commented on PR #10327:


3 months ago
#49

Committed in r60966

#50 @westonruter
3 months ago

In 61109:

Bundled Themes: Modernize Genericons.

This updates Twenty Thirteen, Twenty Fourteen, Twenty Fifteen, and Twenty Sixteen as follows:

  • Remove legacy Internet Explorer support by deleting EOT file rules from CSS.
  • Remove IE hacks from the version included in Twenty Thirteen and Twenty Fourteen.
  • Remove filter rules from the CSS included in Twenty Sixteen.
  • Remove the TTF and SVG src references for all four themes.
  • Remove all prefixes from transform in the rotate and flip classes available in Twenty Sixteen.
  • Edit the values for prefixed transition properties in Twenty Fifteen and Twenty Sixteen.
  • Update CSS comments.

Developed in https://github.com/WordPress/wordpress-develop/pull/10427

Props sabernhardt, metodiew, peterwilsoncc, mukesh27, westonruter.
See #56699, #58836.
Fixes #62128.

Note: See TracTickets for help on using tickets.