PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.2
Jetpack – WP Security, Backup, Speed, & Growth v16.2
16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 All 503 releases
← All changes | modules/shortcodes/presentations.php +9 -5 12.7.316.2 View file →
@@ -54,8 +54,12 @@
54 54 */
55 55
56 56 use Automattic\Jetpack\Assets;
57 57
58 +if ( ! defined( 'ABSPATH' ) ) {
59 + exit( 0 );
60 +}
61 +
58 62 if ( ! class_exists( 'Presentations' ) ) :
59 63 /**
60 64 * Create a shortcode to display Presentations and slides.
61 65 */
@@ -119,19 +123,19 @@
119 123 // Add CSS.
120 124 wp_enqueue_style( 'presentations', $plugin . 'css/style.css', array(), JETPACK__VERSION );
121 125 // Add JavaScript.
122 126 wp_enqueue_script( 'jquery' );
123 - wp_enqueue_script(
124 - 'jmpress',
125 - Assets::get_file_url_for_environment( '_inc/build/shortcodes/js/jmpress.min.js', 'modules/shortcodes/js/jmpress.js' ),
127 + wp_register_script(
128 + 'jetpack-shortcode-deps',
129 + plugins_url( '_inc/build/shortcodes/js/dependencies.min.js', JETPACK__PLUGIN_FILE ),
126 130 array( 'jquery' ),
127 - JETPACK__VERSION,
131 + '20251030',
128 132 true
129 133 );
130 134 wp_enqueue_script(
131 135 'presentations',
132 136 Assets::get_file_url_for_environment( '_inc/build/shortcodes/js/main.min.js', 'modules/shortcodes/js/main.js' ),
133 - array( 'jquery', 'jmpress' ),
137 + array( 'jquery', 'jetpack-shortcode-deps' ),
134 138 JETPACK__VERSION,
135 139 true
136 140 );
137 141 }