From 7c6a7664df916171b2d4bc809f770f2191fcb7ed Mon Sep 17 00:00:00 2001 From: Arthos Date: Mon, 28 Sep 2020 13:28:31 +0000 Subject: [PATCH] Modified wp_enqueue_script() Ensure the script is loaded after photopress.js, #2 --- modules/slideshow/slideshow.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/slideshow/slideshow.php b/modules/slideshow/slideshow.php index d0cc6bf..fa5f894 100644 --- a/modules/slideshow/slideshow.php +++ b/modules/slideshow/slideshow.php @@ -127,7 +127,7 @@ public function public_scripts( $content ) { wp_enqueue_script( 'photopress-slideshow', plugins_url( 'assets/js/slideshow.js' , __FILE__ ), - [ 'jquery', 'imagesloaded', 'owl' ], + [ 'jquery', 'imagesloaded', 'owl', 'photopress' ], PHOTOPRESS_CORE_VERSION ); } @@ -297,4 +297,4 @@ public function registerSettingsPages() { } } -?> \ No newline at end of file +?>