Changeset 46170
- Timestamp:
- 09/18/2019 10:33:45 PM (6 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-scripts.php
r46164 r46170 143 143 add_action( 'init', array( $this, 'init' ), 0 ); 144 144 145 if ( ! current_theme_supports( 'html5', 'script' ) ) {145 if ( ! is_admin() && ! current_theme_supports( 'html5', 'script' ) ) { 146 146 $this->type_attr = " type='text/javascript'"; 147 147 } -
trunk/src/wp-includes/class.wp-styles.php
r46164 r46170 127 127 do_action_ref_array( 'wp_default_styles', array( &$this ) ); 128 128 129 if ( ! current_theme_supports( 'html5', 'style' ) ) {129 if ( ! is_admin() && ! current_theme_supports( 'html5', 'style' ) ) { 130 130 $this->type_attr = " type='text/css'"; 131 131 }
Note: See TracChangeset
for help on using the changeset viewer.