Opened 5 years ago
Closed 5 years ago
#48555 closed enhancement (fixed)
The meta tag "apple-touch-icon-precomposed" is deprecated
Reported by: | khag7 | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.4 | Priority: | normal |
Severity: | minor | Version: | |
Component: | Customize | Keywords: | good-first-bug has-patch |
Focuses: | Cc: |
Description
The meta tag apple-touch-icon-precomposed
is inserted when a site icon is defined.
That tag name is deprecated in favor of apple-touch-icon
.
A good example of why this matters is to run a Google Lighthouse report on any website using WordPress. Unless they have corrected this issue themselves, a warning is thrown for using this tag name.
This is a 2 second fix, just remove -precomposed
from line 31531
of /wp-includes/general-template.php
.
In the meantime, I've been using the following filter on all my sites:
add_filter( 'site_icon_meta_tags', function( $mt ){ return str_replace ( '-precomposed', '', $mt); });
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Here's the documentation about this deprecation:
https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html