Skip to content

Commit b57af6e

Browse files
authored
Merge pull request #53 from PaystackHQ/improve/add-namespace
Add versioning to js and css files for caching
2 parents 513b557 + 6c216bc commit b57af6e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://paystack.com/demo
44
Tags: paystack, recurrent payments, nigeria, mastercard, visa, target, Naira, payments, verve, donation, church, NGO, form, contact form 7, form
55
Requires at least: 3.1
66
Tested up to: 5.0
7-
Stable tag: 3.3.1
7+
Stable tag: 3.3.2
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

paystack-forms.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Payment Forms for Paystack
44
Plugin URI: https://github.com/PaystackHQ/Wordpress-Payment-forms-for-Paystack
55
Description: Payment Forms for Paystack allows you create forms that will be used to bill clients for goods and services via Paystack.
6-
Version: 3.3.1
6+
Version: 3.3.2
77
Author: Paystack
88
Author URI: http://paystack.com
99
License: GPL-2.0+
@@ -15,7 +15,7 @@
1515
}
1616
define('KKD_PFF_PAYSTACK_PLUGIN_PATH', plugins_url(__FILE__));
1717
define('KKD_PFF_PAYSTACK_MAIN_FILE', __FILE__);
18-
define('KKD_PFF_PAYSTACK_VERSION', '2.2.1');
18+
define('KKD_PFF_PAYSTACK_VERSION', '3.3');
1919
define('KKD_PFF_PAYSTACK_TABLE', 'paystack_forms_payments');
2020

2121
define('KKD_PFF_PLUGIN_BASENAME', plugin_basename(__FILE__));

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct($plugin_name, $version)
1717
}
1818
public function enqueue_styles()
1919
{
20-
wp_enqueue_style($this->plugin_name.'1', plugin_dir_url(__FILE__) . 'css/pff-paystack-style.css', array(), $this->version, 'all');
20+
wp_enqueue_style($this->plugin_name.'1', plugin_dir_url(__FILE__) . 'css/pff-paystack-style.css?ver=' . KKD_PFF_PAYSTACK_VERSION, array(), $this->version, 'all');
2121
wp_enqueue_style($this->plugin_name.'2', plugin_dir_url(__FILE__) . 'css/font-awesome.min.css', array(), $this->version, 'all');
2222
}
2323

@@ -48,7 +48,7 @@ public function enqueue_scripts()
4848
wp_enqueue_script('jQuery_UI', plugin_dir_url(__FILE__) . 'js/jquery.ui.min.js', false, $this->version);
4949
wp_register_script('Paystack', 'https://js.paystack.co/v1/inline.js', false, '1');
5050
wp_enqueue_script('Paystack');
51-
wp_enqueue_script('paystack_frontend', plugin_dir_url(__FILE__) . 'js/paystack-forms-public.js', false, $this->version);
51+
wp_enqueue_script('paystack_frontend', plugin_dir_url(__FILE__) . 'js/paystack-forms-public.js?ver=' . KKD_PFF_PAYSTACK_VERSION, false, $this->version);
5252
wp_localize_script('paystack_frontend', 'kkd_pff_settings', array('key'=> Kkd_Pff_Paystack_Public::fetchPublicKey(), 'fee'=>Kkd_Pff_Paystack_Public::fetchFeeSettings()), $this->version, true, true);
5353
}
5454
}

public/class-paystack-forms-public.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function __construct($plugin_name, $version)
1616
}
1717
public function enqueue_styles()
1818
{
19-
wp_enqueue_style($this->plugin_name.'1', plugin_dir_url(__FILE__) . 'css/pff-paystack-style.css', array(), $this->version, 'all');
19+
wp_enqueue_style($this->plugin_name.'1', plugin_dir_url(__FILE__) . 'css/pff-paystack-style.css?ver=' . KKD_PFF_PAYSTACK_VERSION, array(), $this->version, 'all');
2020
wp_enqueue_style($this->plugin_name.'2', plugin_dir_url(__FILE__) . 'css/font-awesome.min.css', array(), $this->version, 'all');
2121
}
2222

@@ -47,7 +47,7 @@ public function enqueue_scripts()
4747
wp_enqueue_script('jQuery_UI', plugin_dir_url(__FILE__) . 'js/jquery.ui.min.js', array( 'jquery' ), $this->version, true, true);
4848
wp_register_script('Paystack', 'https://js.paystack.co/v1/inline.js', false, '1');
4949
wp_enqueue_script('Paystack');
50-
wp_enqueue_script('paystack_frontend', plugin_dir_url(__FILE__) . 'js/paystack-forms-public.js', array( 'jquery' ), $this->version, true, true);
50+
wp_enqueue_script('paystack_frontend', plugin_dir_url(__FILE__) . 'js/paystack-forms-public.js?ver=' . KKD_PFF_PAYSTACK_VERSION, array( 'jquery' ), $this->version, true, true);
5151
wp_localize_script('paystack_frontend', 'kkd_pff_settings', array('key'=> Kkd_Pff_Paystack_Public::fetchPublicKey(), 'fee'=>Kkd_Pff_Paystack_Public::fetchFeeSettings()), $this->version, true, true);
5252
}
5353
}

0 commit comments

Comments
 (0)