From 73ce9c10188ce4f5014c97ad4c0f8c9f69410113 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" <blueness@gentoo.org> Date: Tue, 12 Dec 2017 20:29:44 -0500 Subject: Update jetpack 5.6 Signed-off-by: Anthony G. Basile <blueness@gentoo.org> --- plugins/jetpack/modules/shortcodes/presentations.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'plugins/jetpack/modules/shortcodes/presentations.php') diff --git a/plugins/jetpack/modules/shortcodes/presentations.php b/plugins/jetpack/modules/shortcodes/presentations.php index 962c4434..9c9c568b 100644 --- a/plugins/jetpack/modules/shortcodes/presentations.php +++ b/plugins/jetpack/modules/shortcodes/presentations.php @@ -119,8 +119,20 @@ class Presentations { wp_enqueue_style( 'presentations', $plugin . 'css/style.css' ); // Add JavaScript wp_enqueue_script( 'jquery' ); - wp_enqueue_script( 'jmpress', $plugin . 'js/jmpress.min.js', array( 'jquery' ), '0.4.5', true ); - wp_enqueue_script( 'presentations', $plugin . 'js/main.js', array( 'jquery', 'jmpress' ), false, true ); + wp_enqueue_script( + 'jmpress', + Jetpack::get_file_url_for_environment( '_inc/build/shortcodes/js/jmpress.min.js', 'modules/shortcodes/js/jmpress.js' ), + array( 'jquery' ), + '0.4.5', + true + ); + wp_enqueue_script( + 'presentations', + Jetpack::get_file_url_for_environment( '_inc/build/shortcodes/js/main.min.js', 'modules/shortcodes/js/main.js' ), + array( 'jquery', 'jmpress' ), + false, + true + ); } function presentation_shortcode( $atts, $content = '' ) { -- cgit v1.2.3-65-gdbad