Changeset 48420
- Timestamp:
- 07/10/2020 11:34:41 AM (4 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/customize.php
r48412 r48420 171 171 172 172 /** 173 * Fires when Customizer control scripts are printed.173 * Fires in head section of Customizer controls. 174 174 * 175 175 * @since 5.5.0 -
trunk/src/wp-admin/includes/misc.php
r48412 r48420 1028 1028 */ 1029 1029 $viewport_meta = apply_filters( 'admin_viewport_meta', 'width=device-width,initial-scale=1.0' ); 1030 1030 1031 if ( empty( $viewport_meta ) ) { 1031 1032 return; 1032 1033 } 1034 1033 1035 echo '<meta name="viewport" content="' . esc_attr( $viewport_meta ) . '">'; 1034 1036 } 1035 1037 1036 1038 /** 1037 * Viewport meta for mobile in customize.1039 * Adds viewport meta for mobile in Customizer. 1038 1040 * 1039 1041 * Hooked to the {@see 'admin_viewport_meta'} filter. 1040 1042 * 1041 1043 * @since 5.5.0 1042 */ 1043 function _customizer_mobile_viewport_meta( $content ) { 1044 return trim( $content, ',' ) . ',minimum-scale=0.5,maximum-scale=1.2'; 1044 * 1045 * @param string $viewport_meta The viewport meta. 1046 * @return string Filtered viewport meta. 1047 */ 1048 function _customizer_mobile_viewport_meta( $viewport_meta ) { 1049 return trim( $viewport_meta, ',' ) . ',minimum-scale=0.5,maximum-scale=1.2'; 1045 1050 } 1046 1051
Note: See TracChangeset
for help on using the changeset viewer.