Remove duplicate code

This commit is contained in:
Alexander Agnarson 2019-07-26 19:29:56 +02:00
parent 6992887a80
commit 639de93f5a

View file

@ -633,18 +633,6 @@ if ( ! function_exists( 'curver_html_js_class' ) ) {
add_action( 'wp_head', 'curver_html_js_class', 1 );
/* Script for no-js / js class
/* ------------------------------------ */
if ( ! function_exists( 'curver_html_js_class' ) ) {
function curver_html_js_class () {
echo '<script>document.documentElement.className = document.documentElement.className.replace("no-js","js");</script>'. "\n";
}
}
add_action( 'wp_head', 'curver_html_js_class', 1 );
/* Admin panel css
/* ------------------------------------ */
if ( ! function_exists( 'curver_admin_panel_css' ) ) {