Skip to content

Commit 95505c2

Browse files
use wp jquery core instead of local jquery packaged with plugin
1 parent 37a6c5c commit 95505c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/class-paystack-forms-public-for-old-themes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static function fetchFeeSettings()
4545
public function enqueue_scripts()
4646
{
4747
wp_enqueue_script('blockUI', plugin_dir_url(__FILE__) . 'js/jquery.blockUI.min.js', false, $this->version);
48-
wp_enqueue_script('jQuery_UI', plugin_dir_url(__FILE__) . 'js/jquery.ui.min.js', false, $this->version);
48+
wp_enqueue_script('jquery-ui-core');
4949
wp_register_script('Paystack', 'https://js.paystack.co/v1/inline.js', false, '1');
5050
wp_enqueue_script('Paystack');
5151
wp_enqueue_script('paystack_frontend', plugin_dir_url(__FILE__) . 'js/paystack-forms-public.js', false, $this->version);

public/class-paystack-forms-public.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static function fetchFeeSettings()
4646
public function enqueue_scripts()
4747
{
4848
wp_enqueue_script('blockUI', plugin_dir_url(__FILE__) . 'js/jquery.blockUI.min.js', array('jquery'), $this->version, true, true);
49-
wp_enqueue_script('jQuery_UI', plugin_dir_url(__FILE__) . 'js/jquery.ui.min.js', array('jquery'), $this->version, true, true);
49+
wp_enqueue_script('jquery-ui-core');
5050
wp_register_script('Paystack', 'https://js.paystack.co/v1/inline.js', false, '1');
5151
wp_enqueue_script('Paystack');
5252
wp_enqueue_script('paystack_frontend', plugin_dir_url(__FILE__) . 'js/paystack-forms-public.js', array('jquery'), $this->version, true, true);

0 commit comments

Comments
 (0)