From 31958433219cc056b36c8dbf4508517d4d199c88 Mon Sep 17 00:00:00 2001 From: Francis Whittle Date: Tue, 5 Nov 2024 11:31:58 +1100 Subject: [PATCH] WPCIVIUX-176 Add wp-api-request as a dependency to fullcalendar script --- shortcodes/event/event-fullcalendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortcodes/event/event-fullcalendar.php b/shortcodes/event/event-fullcalendar.php index c3b8a48..e660386 100644 --- a/shortcodes/event/event-fullcalendar.php +++ b/shortcodes/event/event-fullcalendar.php @@ -95,7 +95,7 @@ public function shortcode_callback( $atts = [], $content = null, $tag = '' ) { wp_enqueue_script( 'fullcalendar-base', 'https://cdn.jsdelivr.net/combine/npm/fullcalendar@5.11.5/main.js', [] ); wp_enqueue_script( 'popper', 'https://unpkg.com/@popperjs/core@2/dist/umd/popper.min.js', [] ); wp_enqueue_script( 'tippy', 'https://unpkg.com/tippy.js@6/dist/tippy-bundle.umd.js', [ 'popper' ] ); - wp_enqueue_script( 'ux-fullcalendar', WP_CIVICRM_UX_PLUGIN_URL . WP_CIVICRM_UX_PLUGIN_NAME . '/public/js/event-fullcalendar.js', [ 'fullcalendar-base', 'popper', 'tippy' ] ); + wp_enqueue_script( 'ux-fullcalendar', WP_CIVICRM_UX_PLUGIN_URL . WP_CIVICRM_UX_PLUGIN_NAME . '/public/js/event-fullcalendar.js', [ 'fullcalendar-base', 'popper', 'tippy', 'wp-api-request' ] ); $ux_fullcalendar = [ 'ajax_url' => get_rest_url(),