From dafc0cc63f408b6eaa44d339ad1a8af613560b5a Mon Sep 17 00:00:00 2001 From: asus Date: Tue, 13 Feb 2024 12:35:31 +0100 Subject: [PATCH] correction in plugin utils function add_to_front in add_ajax_post the wp_enqueue_script has a wrong parameter with --- plugins/fipfcard_plugin/html/example_index2.html | 12 ++++++++++++ plugins/fipfcard_plugin/php/utils/add_to_front.php | 2 +- private | 2 +- wordpress_docker | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/plugins/fipfcard_plugin/html/example_index2.html b/plugins/fipfcard_plugin/html/example_index2.html index 4ad6346..3a1a691 100644 --- a/plugins/fipfcard_plugin/html/example_index2.html +++ b/plugins/fipfcard_plugin/html/example_index2.html @@ -7,4 +7,16 @@ ?>

to change

aaaaaand this is the end

+
+ + + + +
+
+ + + + +
diff --git a/plugins/fipfcard_plugin/php/utils/add_to_front.php b/plugins/fipfcard_plugin/php/utils/add_to_front.php index cb0cb78..562be07 100644 --- a/plugins/fipfcard_plugin/php/utils/add_to_front.php +++ b/plugins/fipfcard_plugin/php/utils/add_to_front.php @@ -28,7 +28,7 @@ function fipfcard_add_ajax_post() { // return ; $fipfcard_first_script = $file->handle; - wp_enqueue_script( $file->handle, $file->url, $previous_js_basename, $file->version, true); + wp_enqueue_script( $file->handle, $file->url, '', $file->version, true); $_url = admin_url( 'admin-ajax.php' ); $_nonce = wp_create_nonce( 'wp-pageviews-nonce' ); diff --git a/private b/private index c242ff4..fa03430 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit c242ff4574a909cceacb51d8671750757fdb6f5f +Subproject commit fa03430cd00edd42057b6beda30135488219edda diff --git a/wordpress_docker b/wordpress_docker index 8f8a404..06c4ca4 160000 --- a/wordpress_docker +++ b/wordpress_docker @@ -1 +1 @@ -Subproject commit 8f8a4046b8c9d17a8bd5e2d9f022d6d26653477a +Subproject commit 06c4ca43752b7fb381e48055b5b5451c9daaa04b