WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/09/2020 11:27:28 PM (17 months ago)
Author:
whyisjake
Message:

Administration: Remove multiple viewport meta tags from mobile pages.

In addition, add the wp_admin_viewport_meta() function, paired to the admin_viewport_meta filter to control attributes of the meta tag.

Fixes #47369.
Props BettyJJ, mukesh27, SergeyBiryukov, ajayghaghretiya1, msaggiorato, talldanwp, davidbaumwald, donmhico, audrasjb.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/customize.php

    r48111 r48412  
    133133if ( wp_is_mobile() ) :
    134134    $body_class .= ' mobile';
    135 
    136     ?>
    137     <meta name="viewport" id="viewport-meta" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=1.2" />
    138     <?php
     135    add_filter( 'admin_viewport_meta', '_customizer_mobile_viewport_meta' );
    139136endif;
    140137
     
    172169 */
    173170do_action( 'customize_controls_print_scripts' );
     171
     172/**
     173 * Fires when Customizer control scripts are printed.
     174 *
     175 * @since 5.5.0
     176 */
     177do_action( 'customize_controls_head' );
    174178?>
    175179</head>
Note: See TracChangeset for help on using the changeset viewer.