Payment Form for PayPal Pro - Version 1.1.43

Version Description

  • Fixed conflict with third party plugins

=

Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Payment Form for PayPal Pro
Version 1.1.43
Comparing to
See all releases

Code changes from version 1.1.42 to 1.1.43

Files changed (2) hide show
  1. README.txt +5 -2
  2. cp_ppp.php +13 -1
README.txt CHANGED
@@ -257,7 +257,10 @@ A: In all plugin versions you can turn off IP tracking to avoid saving that user
257
  = 1.1.42 =
258
  * Fixed jQuery slim conflict
259
 
 
 
 
260
  == Upgrade Notice ==
261
 
262
- = 1.1.42 =
263
- * Fixed jQuery slim conflict
257
  = 1.1.42 =
258
  * Fixed jQuery slim conflict
259
 
260
+ = 1.1.43 =
261
+ * Fixed conflict with third party plugins
262
+
263
  == Upgrade Notice ==
264
 
265
+ = 1.1.43 =
266
+ * Fixed conflict with third party plugins
cp_ppp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Payment Form for PayPal Pro
4
  Plugin URI: https://wordpress.dwbooster.com/forms/paypal-payment-pro-form
5
  Description: Payment Form for PayPal Pro to accept credit cards directly into your website. Official PayPal Partner.
6
- Version: 1.1.42
7
  Author: CodePeople
8
  Author URI: https://wordpress.dwbooster.com/forms/payment-form-for-paypal-pro
9
  License: GPL
@@ -1507,4 +1507,16 @@ class CP_PPP_Widget extends WP_Widget
1507
  // optional opt-in deactivation feedback
1508
  require_once 'cp-feedback.php';
1509
 
 
 
 
 
 
 
 
 
 
 
 
 
1510
  ?>
3
  Plugin Name: Payment Form for PayPal Pro
4
  Plugin URI: https://wordpress.dwbooster.com/forms/paypal-payment-pro-form
5
  Description: Payment Form for PayPal Pro to accept credit cards directly into your website. Official PayPal Partner.
6
+ Version: 1.1.43
7
  Author: CodePeople
8
  Author URI: https://wordpress.dwbooster.com/forms/payment-form-for-paypal-pro
9
  License: GPL
1507
  // optional opt-in deactivation feedback
1508
  require_once 'cp-feedback.php';
1509
 
1510
+ // code for compatibility with third party scripts
1511
+ add_filter('option_sbp_settings', 'cpcfpppro_sbp_fix_conflict' );
1512
+ function cpcfpppro_sbp_fix_conflict($option)
1513
+ {
1514
+ if(!is_admin())
1515
+ {
1516
+ if(is_array($option) && isset($option['jquery_to_footer']))
1517
+ unset($option['jquery_to_footer']);
1518
+ }
1519
+ return $option;
1520
+ }
1521
+
1522
  ?>