[wp-trac] [WordPress Trac] #47369: Admin pages have two viewport meta tags on mobile
WordPress Trac
noreply at wordpress.org
Fri May 24 05:06:22 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: 3.3
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
--------------------------+------------------------------
Changes (by mukesh27):
* keywords: => dev-feedback
* version: => 3.3
Comment:
Hi @BettyJJ, welcome to WordPress Trac! Thanks for the report.
Also replicated same issue in mobile device.
Second viewport added via {{{ wp-admin/includes/admin-filters.php }}} file
with {{{ add_action( 'admin_head', '_ipad_meta' ); }}} add_action code and
it was introduce in WordPress 3.3.0
{{{
/**
* @since 3.3.0
*/
function _ipad_meta() {
if ( wp_is_mobile() ) {
?>
<meta name="viewport" id="viewport-meta" content="width
=device-width, initial-scale=1">
<?php
}
}
}}}
@desrosj can you please review above and add your thought or further
guidance.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47369#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list