Changeset 46171 for trunk/src/wp-includes/class.wp-scripts.php
- Timestamp:
- 09/18/2019 10:41:29 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class.wp-scripts.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-scripts.php
r46170 r46171 142 142 $this->init(); 143 143 add_action( 'init', array( $this, 'init' ), 0 ); 144 144 } 145 146 /** 147 * Initialize the class. 148 * 149 * @since 3.4.0 150 */ 151 public function init() { 145 152 if ( ! is_admin() && ! current_theme_supports( 'html5', 'script' ) ) { 146 153 $this->type_attr = " type='text/javascript'"; 147 154 } 148 } 149 150 /** 151 * Initialize the class. 152 * 153 * @since 3.4.0 154 */ 155 public function init() { 155 156 156 /** 157 157 * Fires when the WP_Scripts instance is initialized.
Note: See TracChangeset
for help on using the changeset viewer.