Make WordPress Core


Ignore:
Timestamp:
07/09/2020 11:27:28 PM (4 years 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/includes/admin-filters.php

    r48288 r48412  
    4545add_action( 'admin_head', 'wp_color_scheme_settings' );
    4646add_action( 'admin_head', 'wp_site_icon' );
    47 add_action( 'admin_head', '_ipad_meta' );
     47add_action( 'admin_head', 'wp_admin_viewport_meta' );
     48add_action( 'customize_controls_head', 'wp_admin_viewport_meta' );
    4849
    4950// Prerendering.
Note: See TracChangeset for help on using the changeset viewer.