Skip to content

Commit

Permalink
Theme Sniffer: Scripts must be registered/enqueued via wp_enqueue_scr…
Browse files Browse the repository at this point in the history
…ipt - remove IE8 support
  • Loading branch information
AlxMedia committed Jul 20, 2018
1 parent 711b8c1 commit 3c8da1d
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 640 deletions.
29 changes: 0 additions & 29 deletions functions.php
Expand Up @@ -673,35 +673,6 @@ function slanted_html_js_class () {
add_action( 'wp_head', 'slanted_html_js_class', 1 );


/* IE js header
/* ------------------------------------ */
if ( ! function_exists( 'slanted_ie_js_header' ) ) {

function slanted_ie_js_header () {
echo '<!--[if lt IE 9]>'. "\n";
echo '<script src="' . esc_url( get_template_directory_uri() . '/js/ie/html5.js' ) . '"></script>'. "\n";
echo '<script src="' . esc_url( get_template_directory_uri() . '/js/ie/selectivizr.js' ) . '"></script>'. "\n";
echo '<![endif]-->'. "\n";
}

}
add_action( 'wp_head', 'slanted_ie_js_header' );


/* IE js footer
/* ------------------------------------ */
if ( ! function_exists( 'slanted_ie_js_footer' ) ) {

function slanted_ie_js_footer () {
echo '<!--[if lt IE 9]>'. "\n";
echo '<script src="' . esc_url( get_template_directory_uri() . '/js/ie/respond.js' ) . '"></script>'. "\n";
echo '<![endif]-->'. "\n";
}

}
add_action( 'wp_footer', 'slanted_ie_js_footer', 20 );


/* TGM plugin activation
/* ------------------------------------ */
if ( ! function_exists( 'slanted_plugins' ) ) {
Expand Down
8 changes: 0 additions & 8 deletions js/ie/html5.js

This file was deleted.

6 changes: 0 additions & 6 deletions js/ie/respond.js

This file was deleted.

0 comments on commit 3c8da1d

Please sign in to comment.