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

WordPress Trac noreply at wordpress.org
Thu Jun 20 14:43:57 UTC 2019


#47369: Admin pages have two viewport meta tags on mobile
----------------------------+---------------------
 Reporter:  BettyJJ         |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  5.3
Component:  Administration  |     Version:  3.3
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:
----------------------------+---------------------

Comment (by msaggiorato):

 Ok here's what i did:

 * Removed the viewport call from `wp-admin/admin-header.php`
 * Added a new function called `wp_admin_viewport_meta()` (similar to
 what's already used for wp_login)
 * Added a new hook `customize_controls_head ` to use the same function in
 `wp-admin/customize.php`, and to be in line with `admin_head` and
 `login_head`.
 * Added a filter to the new function I added, to accomodate the different
 meta printed in the customizer.

 Hopefully this works, let me know your thoughts.

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


More information about the wp-trac mailing list