Changeset 56687 for trunk/src/wp-includes/theme.php
- Timestamp:
- 09/25/2023 09:03:19 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r56686 r56687 3784 3784 $home_origin = parse_url( home_url() ); 3785 3785 $cross_domain = ( strtolower( $admin_origin['host'] ) !== strtolower( $home_origin['host'] ) ); 3786 $type_attr = current_theme_supports( 'html5', 'script' ) ? '' : ' type="text/javascript"';3786 ob_start(); 3787 3787 ?> 3788 <script <?php echo $type_attr; ?>>3788 <script> 3789 3789 (function() { 3790 3790 var request, b = document.body, c = 'className', cs = 'customize-support', rcs = new RegExp('(^|\\s+)(no-)?'+cs+'(\\s+|$)'); … … 3802 3802 </script> 3803 3803 <?php 3804 wp_print_inline_script_tag( str_replace( array( '<script>', '</script>' ), '', ob_get_clean() ) ); 3804 3805 } 3805 3806
Note: See TracChangeset
for help on using the changeset viewer.