[wp-trac] [WordPress Trac] #47369: Admin pages have two viewport meta tags on mobile

WordPress Trac noreply at wordpress.org
Fri May 24 01:11:38 UTC 2019


#47369: Admin pages have two viewport meta tags on mobile
--------------------------+-----------------------------
 Reporter:  BettyJJ       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 One is add by wp-admin/admin-header.php:
 {{{
 <meta name="viewport" content="width=device-width,initial-scale=1.0">
 }}}

 Another one is added by wp-admin/includes/admin-filters.php and the
 content is
 {{{
 <meta name="viewport" id="viewport-meta" content="width=device-width,
 initial-scale=1">
 }}}

 Use Chrome DevTools to emulate any mobile browser and you can see them.

 Having two viewport meta tags is not good practice. Besides, there is
 really no need to use two viewport meta tags here since their contents are
 virtually identical.

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


More information about the wp-trac mailing list