Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion inc/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@ function accelerate_scripts_styles_method() {
// wp_enqueue_style( 'accelerate-fontawesome', get_template_directory_uri() . '/fontawesome/css/font-awesome.css', array(), '4.7.0' );

wp_enqueue_script( 'html5shiv', ACCELERATE_JS_URL . '/html5shiv.js', array(), '3.7.3', false );
wp_script_add_data( 'html5shiv', 'conditional', 'lte IE 8' );

// The 'conditional' data key is deprecated since WP 6.9.0 and has no effect there;
// only set it on older versions to keep html5shiv restricted to IE8 and below.
if ( version_compare( $GLOBALS['wp_version'], '6.9', '<' ) ) {
wp_script_add_data( 'html5shiv', 'conditional', 'lte IE 8' );
}
}

function accelerate_block_editor_styles() {
Expand Down