Payment Form for PayPal Pro - Version 1.1.68

Version Description

  • Compatible with WordPress 6.0

=

Download this release

Release Info

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

Code changes from version 1.1.66 to 1.1.68

Files changed (5) hide show
  1. README.txt +9 -3
  2. cp-feedback.php +38 -32
  3. cp_ppp.php +3 -3
  4. css/style.css +1 -1
  5. css/stylepublic.css +1 -4
README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: codepeople
3
  Donate link: https://wordpress.dwbooster.com/forms/paypal-payment-pro-form
4
  Tags: paypal,paypal pro,paypal advanced,pro,accept,credit,cards,card,payment,processing
5
  Requires at least: 3.0.5
6
- Tested up to: 5.5
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -329,7 +329,13 @@ A: In all plugin versions you can turn off IP tracking to avoid saving that user
329
  = 1.1.66 =
330
  * Compatible with WordPress 5.5
331
 
 
 
 
 
 
 
332
  == Upgrade Notice ==
333
 
334
- = 1.1.66 =
335
- * Compatible with WordPress 5.5
3
  Donate link: https://wordpress.dwbooster.com/forms/paypal-payment-pro-form
4
  Tags: paypal,paypal pro,paypal advanced,pro,accept,credit,cards,card,payment,processing
5
  Requires at least: 3.0.5
6
+ Tested up to: 6.0
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
329
  = 1.1.66 =
330
  * Compatible with WordPress 5.5
331
 
332
+ = 1.1.67 =
333
+ * Compatible with WordPress 5.6
334
+
335
+ = 1.1.68 =
336
+ * Compatible with WordPress 6.0
337
+
338
  == Upgrade Notice ==
339
 
340
+ = 1.1.68 =
341
+ * Compatible with WordPress 6.0
cp-feedback.php CHANGED
@@ -24,38 +24,43 @@ function cppffppp_feedback_insert_adminScripts($hook) {
24
  // This function is used only if explicitly accepted (opt-in) by the user
25
  function cppffppp_feedback() {
26
  global $cppffppp_plugfile, $cppffppp_plugslug;
27
- $cppffppp_plugin_data = get_plugin_data( dirname(__FILE__).'/'.$cppffppp_plugfile );
28
- $cppffppp_plugin_version = $cppffppp_plugin_data['Version'];
29
- $time = time() - get_option('installed_'.$cppffppp_plugslug, '');
30
- $data = array(
31
- 'answer' => (@$_POST["answer"]),
32
- 'otherplugin' => (@$_POST["opinfo"]),
33
- 'otherinfo' => (@$_POST["oinfo"]),
34
- 'plugin' => ($cppffppp_plugin_data['Name']),
35
- 'pluginv' => ($cppffppp_plugin_version),
36
- 'wordpress' => (get_bloginfo( 'version' )),
37
- 'itime' => ($time),
38
- 'phpversion' => (phpversion ())
39
- );
40
- if (@$_POST["onymous"] == 'false') // send this data only if explicitly accepted
41
- {
42
- $current_user = wp_get_current_user();
43
- $data['email'] = ($current_user->user_email);
44
- $data['website'] = ($_SERVER['HTTP_HOST']);
45
- $data['url'] = (get_site_url());
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }
47
-
48
- //extract data from the post
49
- //set POST variables
50
- $url = 'https://wordpress.dwbooster.com/licensesystem/debug-data.php';
51
- $fields = $data;
52
-
53
- wp_remote_post(
54
- $url,
55
- array ( 'body' => $fields )
56
- );
57
-
58
- wp_die(); // this is required to terminate immediately and return a proper response
59
  }
60
 
61
 
@@ -65,7 +70,7 @@ function cppffppp_feedback_javascript() {
65
  <script type="text/javascript">
66
 
67
  $ = jQuery.noConflict()
68
- $( window ).load(function() {
69
  document.querySelector('[data-slug="<?php echo $cppffppp_plugslug; ?>"] .deactivate a').addEventListener('click', function(event){
70
  event.preventDefault()
71
  var urlRedirect = document.querySelector('[data-slug="<?php echo $cppffppp_plugslug; ?>"] .deactivate a').getAttribute('href');
@@ -117,6 +122,7 @@ $( window ).load(function() {
117
  var isAnonymous = $("input[name='cpabcanonymous']:checked").length > 0;
118
  var data = {
119
  'action': 'cppffppp_feedback',
 
120
  'answer': $("input[name='abcm_reason']:checked").val(),
121
  'opinfo': $("input[name='abcm_otherpinfo']").val(),
122
  'oinfo': $("input[name='abcm_otherinfo']").val(),
24
  // This function is used only if explicitly accepted (opt-in) by the user
25
  function cppffppp_feedback() {
26
  global $cppffppp_plugfile, $cppffppp_plugslug;
27
+ if (
28
+ isset( $_POST['_wpnonce'] ) &&
29
+ wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ), 'pffpp-feedback' )
30
+ ) {
31
+ $cppffppp_plugin_data = get_plugin_data( dirname(__FILE__).'/'.$cppffppp_plugfile );
32
+ $cppffppp_plugin_version = $cppffppp_plugin_data['Version'];
33
+ $time = time() - get_option('installed_'.$cppffppp_plugslug, '');
34
+ $data = array(
35
+ 'answer' => (@$_POST["answer"]),
36
+ 'otherplugin' => (@$_POST["opinfo"]),
37
+ 'otherinfo' => (@$_POST["oinfo"]),
38
+ 'plugin' => ($cppffppp_plugin_data['Name']),
39
+ 'pluginv' => ($cppffppp_plugin_version),
40
+ 'wordpress' => (get_bloginfo( 'version' )),
41
+ 'itime' => ($time),
42
+ 'phpversion' => (phpversion ())
43
+ );
44
+ if (@$_POST["onymous"] == 'false') // send this data only if explicitly accepted
45
+ {
46
+ $current_user = wp_get_current_user();
47
+ $data['email'] = ($current_user->user_email);
48
+ $data['website'] = ($_SERVER['HTTP_HOST']);
49
+ $data['url'] = (get_site_url());
50
+ }
51
+
52
+ //extract data from the post
53
+ //set POST variables
54
+ $url = 'https://wordpress.dwbooster.com/licensesystem/debug-data.php';
55
+ $fields = $data;
56
+
57
+ wp_remote_post(
58
+ $url,
59
+ array ( 'body' => $fields )
60
+ );
61
+
62
+ wp_die(); // this is required to terminate immediately and return a proper response
63
  }
 
 
 
 
 
 
 
 
 
 
 
 
64
  }
65
 
66
 
70
  <script type="text/javascript">
71
 
72
  $ = jQuery.noConflict()
73
+ $(window).on('load',function() {
74
  document.querySelector('[data-slug="<?php echo $cppffppp_plugslug; ?>"] .deactivate a').addEventListener('click', function(event){
75
  event.preventDefault()
76
  var urlRedirect = document.querySelector('[data-slug="<?php echo $cppffppp_plugslug; ?>"] .deactivate a').getAttribute('href');
122
  var isAnonymous = $("input[name='cpabcanonymous']:checked").length > 0;
123
  var data = {
124
  'action': 'cppffppp_feedback',
125
+ '_wpnonce' : '<?php echo esc_js(wp_create_nonce( 'pffpp-feedback' )); ?>',
126
  'answer': $("input[name='abcm_reason']:checked").val(),
127
  'opinfo': $("input[name='abcm_otherpinfo']").val(),
128
  'oinfo': $("input[name='abcm_otherinfo']").val(),
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.66
7
  Author: CodePeople
8
  Author URI: https://wordpress.dwbooster.com/forms/payment-form-for-paypal-pro
9
  License: GPL
@@ -588,8 +588,8 @@ function cp_ppp_get_public_form($id) {
588
  <script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/jquery.js'; ?>'></script>
589
  <script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'core.min.js'; ?>'></script>
590
  <script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'datepicker.min.js'; ?>'></script>
591
- <script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'widget.min.js'; ?>'></script>
592
- <script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'position.min.js'; ?>'></script>
593
  <script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'tooltip.min.js'; ?>'></script>
594
  <script>
595
  var fbuilderjQuery = jQuery.noConflict( );
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.68
7
  Author: CodePeople
8
  Author URI: https://wordpress.dwbooster.com/forms/payment-form-for-paypal-pro
9
  License: GPL
588
  <script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/jquery.js'; ?>'></script>
589
  <script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'core.min.js'; ?>'></script>
590
  <script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'datepicker.min.js'; ?>'></script>
591
+ <?php if (@file_exists(dirname( __FILE__ ).'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'widget.min.js')) { ?><script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'widget.min.js'; ?>'></script><?php } ?>
592
+ <?php if (@file_exists(dirname( __FILE__ ).'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'position.min.js')) { ?><script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'position.min.js'; ?>'></script><?php } ?>
593
  <script type='text/javascript' src='<?php echo $plugin_url.'/../../../wp-includes/js/jquery/ui/'.$prefix_ui.'tooltip.min.js'; ?>'></script>
594
  <script>
595
  var fbuilderjQuery = jQuery.noConflict( );
css/style.css CHANGED
@@ -10,7 +10,7 @@
10
  .width30{width:30%}
11
  .padding10{padding:10px;}
12
  .button, .form-builder .button{float:left;margin:5px 15px;}
13
- .button.n span{color:#AED0EA}
14
  #tabs{height:650px;width:100%;overflow-y:auto;}
15
  #fbuilder{height:640px;overflow:auto;position:relative;}
16
  #fbuilder .fields{border:1px solid transparent;padding:3px 10px 14px 10px;margin:5px 0px;display:block;position:relative}
10
  .width30{width:30%}
11
  .padding10{padding:10px;}
12
  .button, .form-builder .button{float:left;margin:5px 15px;}
13
+ .button.n span,.button.n {color:#AED0EA;border-color:#AED0EA}
14
  #tabs{height:650px;width:100%;overflow-y:auto;}
15
  #fbuilder{height:640px;overflow:auto;position:relative;}
16
  #fbuilder .fields{border:1px solid transparent;padding:3px 10px 14px 10px;margin:5px 0px;display:block;position:relative}
css/stylepublic.css CHANGED
@@ -63,16 +63,13 @@
63
  #fbuilder .pbreak .pbPrevious,.pbreak .pbNext,.pbSubmit{background:#ccc;color:#000;display:block;float:left;cursor:pointer;margin:10px 10px 0px 0px;padding:5px 20px;}
64
  #fbuilder .pbreak.pb0 .pbPrevious{display:none;}
65
  #fbuilder .pbreak.pbEnd .pbNext{display:none;}
66
- #fbuilder .ignore{border:5px solid black;}
67
  #fbuilder fieldset{border:1px solid #ccc;padding:10px;}
68
  #fbuilder legend{border:1px solid #ccc;padding:5px 10px;}
69
  #fbuilder .cpcaptchalayer,.cp_subbtn{display:none;}
70
  #fbuilder .captcha img{ cursor:pointer; }
71
 
72
- #fbuilder input[type='radio'],#fbuilder input[type='checkbox']{width:auto;}
73
  .ui-tooltip.uh-tooltip{width:250px;font-size:10px;font-weight:normal;padding:5px;}
74
- #fbuilder input[type="checkbox"]{-webkit-appearance:checkbox!important;}
75
- #fbuilder input[type="radio"]{-webkit-appearance:radio!important;}
76
 
77
  #fbuilder .cff-summary-title:after{ content: ': '; }
78
 
63
  #fbuilder .pbreak .pbPrevious,.pbreak .pbNext,.pbSubmit{background:#ccc;color:#000;display:block;float:left;cursor:pointer;margin:10px 10px 0px 0px;padding:5px 20px;}
64
  #fbuilder .pbreak.pb0 .pbPrevious{display:none;}
65
  #fbuilder .pbreak.pbEnd .pbNext{display:none;}
66
+ #fbuilder .ignore{display:none;}
67
  #fbuilder fieldset{border:1px solid #ccc;padding:10px;}
68
  #fbuilder legend{border:1px solid #ccc;padding:5px 10px;}
69
  #fbuilder .cpcaptchalayer,.cp_subbtn{display:none;}
70
  #fbuilder .captcha img{ cursor:pointer; }
71
 
 
72
  .ui-tooltip.uh-tooltip{width:250px;font-size:10px;font-weight:normal;padding:5px;}
 
 
73
 
74
  #fbuilder .cff-summary-title:after{ content: ': '; }
75