[wp-trac] [WordPress Trac] #48555: The meta tag "apple-touch-icon-precomposed" is deprecated

WordPress Trac noreply at wordpress.org
Sun Nov 10 21:17:59 UTC 2019


#48555: The meta tag "apple-touch-icon-precomposed" is deprecated
-------------------------+-----------------------------
 Reporter:  khag7        |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  minor        |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 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);
 });

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48555>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list