From 57777e4eaa08dae55e184ab24f4532c1a8e1c051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Ko=CC=88nemann?= Date: Wed, 7 Dec 2016 08:29:57 +0100 Subject: [PATCH] Fixing strange condition, return true on every pagetemplate --- inc/enqueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/enqueue.php b/inc/enqueue.php index 89c9910..e2a7663 100644 --- a/inc/enqueue.php +++ b/inc/enqueue.php @@ -30,7 +30,7 @@ if ( ! function_exists( 'understrap_scripts' ) ) { $loadit = false; } } - if ( is_page_template( ( 'page-templates/vertical-one-page.php' ) || is_home() || is_single() ) && $loadit ) { + if ( ( is_page_template ( 'page-templates/vertical-one-page.php' ) || is_home() || is_single() ) && $loadit ) { wp_enqueue_script( 'vertical-one-page', get_template_directory_uri() . '/js/vertical-one-page.js', array( 'jquery' ), true ); $page_for_posts = strtolower( get_the_title( get_option( 'page_for_posts' ) ) );