WP User Frontend – Membership, Profile, Registration & Post Submission Plugin for WordPress - Version 3.1.17

Version Description

Download this release

Release Info

Developer tareq1988
Plugin Icon 128x128 WP User Frontend – Membership, Profile, Registration & Post Submission Plugin for WordPress
Version 3.1.17
Comparing to
See all releases

Code changes from version 3.1.16 to 3.1.17

admin/class-tools.php CHANGED
@@ -300,7 +300,7 @@ class WPUF_Admin_Tools {
300
 
301
  ob_clean();
302
 
303
- echo esc_js( $json_file );
304
 
305
  header( 'Content-Type: text/json; charset=' . get_option( 'blog_charset' ) );
306
  header( "Content-Disposition: attachment; filename=$json_name.json" );
300
 
301
  ob_clean();
302
 
303
+ echo $json_file; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
304
 
305
  header( 'Content-Type: text/json; charset=' . get_option( 'blog_charset' ) );
306
  header( "Content-Disposition: attachment; filename=$json_name.json" );
admin/form-builder/class-wpuf-admin-form-builder-ajax.php CHANGED
@@ -26,7 +26,7 @@ class WPUF_Admin_Form_Builder_Ajax {
26
  $post_data = wp_unslash($_POST);
27
 
28
  if ( isset( $post_data['form_data'] ) ) {
29
- parse_str( wp_unslash( $post_data['form_data'] ), $form_data );
30
  } else {
31
  wp_send_json_error( __( 'form data is missing', 'wp-user-frontend'));
32
  }
@@ -45,18 +45,15 @@ class WPUF_Admin_Form_Builder_Ajax {
45
  $integrations = [];
46
 
47
  if ( isset( $post_data['settings'] ) ) {
48
- $settings_data = array_map( 'sanitize_text_field', wp_unslash( $post_data['settings'] ) );
49
- $settings = (array) json_decode( $settings_data );
50
  } else {
51
  $settings = isset( $form_data['wpuf_settings'] ) ? $form_data['wpuf_settings'] : [];
52
  }
53
 
54
  if ( isset( $post_data['integrations'] ) ) {
55
- $integrations = (array) json_decode( sanitize_text_field( wp_unslash( $post_data['integrations'] ) ) );
56
  }
57
 
58
- $form_fields = wp_unslash( $form_fields );
59
- $notifications = wp_unslash( $notifications );
60
 
61
  $form_fields = json_decode( $form_fields, true );
62
  $notifications = json_decode( $notifications, true );
26
  $post_data = wp_unslash($_POST);
27
 
28
  if ( isset( $post_data['form_data'] ) ) {
29
+ parse_str( $post_data['form_data'], $form_data );
30
  } else {
31
  wp_send_json_error( __( 'form data is missing', 'wp-user-frontend'));
32
  }
45
  $integrations = [];
46
 
47
  if ( isset( $post_data['settings'] ) ) {
48
+ $settings = (array) json_decode( $post_data['settings'] );
 
49
  } else {
50
  $settings = isset( $form_data['wpuf_settings'] ) ? $form_data['wpuf_settings'] : [];
51
  }
52
 
53
  if ( isset( $post_data['integrations'] ) ) {
54
+ $integrations = (array) json_decode( $post_data['integrations'] );
55
  }
56
 
 
 
57
 
58
  $form_fields = json_decode( $form_fields, true );
59
  $notifications = json_decode( $notifications, true );
admin/html/form-settings-display.php CHANGED
@@ -59,28 +59,28 @@ $theme_css = isset( $form_settings['use_theme_css'] ) ? $form_settings['use
59
  <td>
60
  <ul>
61
  <?php
62
- $layouts = [
63
- 'layout1' => WPUF_PRO_ASSET_URI . '/images/forms/layout1.png',
64
- 'layout2' => WPUF_PRO_ASSET_URI . '/images/forms/layout2.png',
65
- 'layout3' => WPUF_PRO_ASSET_URI . '/images/forms/layout3.png',
66
- 'layout4' => WPUF_PRO_ASSET_URI . '/images/forms/layout4.png',
67
- 'layout5' => WPUF_PRO_ASSET_URI . '/images/forms/layout5.png',
68
- ];
69
 
70
- foreach ( $layouts as $key => $image ) {
71
- $class = '';
72
 
73
- if ( $key == $form_layout ) {
74
- $class = 'active';
75
- }
76
 
77
- $output = '<li class="' . $class . '">';
78
- $output .= '<input type="radio" name="wpuf_settings[form_layout]" value="' . $key . '" ' . checked( $form_layout, $key, false ) . '>';
79
- $output .= '<img src="' . $image . '" alt="">';
80
- $output .= '</li>';
81
 
82
- echo wp_kses_post( $output );
83
- }
84
  ?>
85
  </ul>
86
  </td>
59
  <td>
60
  <ul>
61
  <?php
62
+ $layouts = [
63
+ 'layout1' => WPUF_PRO_ASSET_URI . '/images/forms/layout1.png',
64
+ 'layout2' => WPUF_PRO_ASSET_URI . '/images/forms/layout2.png',
65
+ 'layout3' => WPUF_PRO_ASSET_URI . '/images/forms/layout3.png',
66
+ 'layout4' => WPUF_PRO_ASSET_URI . '/images/forms/layout4.png',
67
+ 'layout5' => WPUF_PRO_ASSET_URI . '/images/forms/layout5.png',
68
+ ];
69
 
70
+ foreach ( $layouts as $key => $image ) {
71
+ $active = '';
72
 
73
+ if ( $key == $form_layout ) {
74
+ $active = 'active';
75
+ }
76
 
77
+ $output = '<li class="' . $active . '">';
78
+ $output .= '<input type="radio" name="wpuf_settings[form_layout]" value="' . $key . '" ' . checked( $form_layout, $key, false ) . '>';
79
+ $output .= '<img src="' . $image . '" alt="">';
80
+ $output .= '</li>';
81
 
82
+ echo $output; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
83
+ }
84
  ?>
85
  </ul>
86
  </td>
admin/html/form-settings-post-edit.php CHANGED
@@ -18,7 +18,7 @@ $lock_edit_post = isset( $form_settings['lock_edit_post'] ) ? $form_settin
18
  $statuses = get_post_statuses();
19
 
20
  foreach ( $statuses as $status => $label ) {
21
- printf( '<option value="%s"%s>%s</option>', esc_attr( $status ), esc_attr( selected( $post_status_selected ), $status, false ), esc_html( $label ) );
22
  }
23
 
24
  printf( '<option value="_nochange"%s>%s</option>', esc_attr( selected( $post_status_selected, '_nochange', false ) ), esc_html( __( 'No Change', 'wp-user-frontend' ) ) );
@@ -105,4 +105,4 @@ $lock_edit_post = isset( $form_settings['lock_edit_post'] ) ? $form_settin
105
  </p>
106
  </td>
107
  </tr>
108
- </table>
18
  $statuses = get_post_statuses();
19
 
20
  foreach ( $statuses as $status => $label ) {
21
+ printf( '<option value="%s"%s>%s</option>', esc_attr( $status ), selected( esc_attr( $post_status_selected ), $status, false ), esc_html( $label ) );
22
  }
23
 
24
  printf( '<option value="_nochange"%s>%s</option>', esc_attr( selected( $post_status_selected, '_nochange', false ) ), esc_html( __( 'No Change', 'wp-user-frontend' ) ) );
105
  </p>
106
  </td>
107
  </tr>
108
+ </table>
admin/posting.php CHANGED
@@ -212,7 +212,7 @@ class WPUF_Admin_Posting {
212
 
213
  <!-- <input type="hidden" name="wpuf_lock_editing_post_nonce" value="<?php // echo wp_create_nonce( plugin_basename( __FILE__ ) ); ?>" /> -->
214
  <?php wp_nonce_field( plugin_basename( __FILE__ ), 'wpuf_lock_editing_post_nonce' ); ?>
215
- <p><?php echo esc_html( $msg ); ?></p>
216
 
217
  <label>
218
  <?php if ( !$is_locked ) { ?>
212
 
213
  <!-- <input type="hidden" name="wpuf_lock_editing_post_nonce" value="<?php // echo wp_create_nonce( plugin_basename( __FILE__ ) ); ?>" /> -->
214
  <?php wp_nonce_field( plugin_basename( __FILE__ ), 'wpuf_lock_editing_post_nonce' ); ?>
215
+ <p><?php echo wp_kses_post( $msg ); ?></p>
216
 
217
  <label>
218
  <?php if ( !$is_locked ) { ?>
admin/promotion.php CHANGED
@@ -184,8 +184,8 @@ class WPUF_Admin_Promotion {
184
  <img src="<?php echo esc_attr( WPUF_ASSET_URI ) . '/images/icon-128x128.png'; ?>" alt="">
185
  </div>
186
  <div class="wpuf-review-text">
187
- <h3><?php esc_html_e( 'Enjoying <strong>WP User Frontend</strong>?', 'wp-user-frontend' ); ?></h3>
188
- <p><?php esc_html_e( 'Hope that you had a neat and snappy experience with the tool. Would you please show us a little love by rating us in the <a href="https://wordpress.org/support/plugin/wp-user-frontend/reviews/#new-post" target="_blank"><strong>WordPress.org</strong></a>?', 'wp-user-frontend' ); ?></p>
189
 
190
  <ul class="wpuf-review-ul">
191
  <li><a href="https://wordpress.org/support/plugin/wp-user-frontend/reviews/#new-post" target="_blank"><span class="dashicons dashicons-external"></span><?php esc_html_e( 'Sure! I\'d love to!', 'wp-user-frontend' ); ?></a></li>
184
  <img src="<?php echo esc_attr( WPUF_ASSET_URI ) . '/images/icon-128x128.png'; ?>" alt="">
185
  </div>
186
  <div class="wpuf-review-text">
187
+ <h3><?php echo wp_kses_post( 'Enjoying <strong>WP User Frontend</strong>?', 'wp-user-frontend' ); ?></h3>
188
+ <p><?php echo wp_kses_post( 'Hope that you had a neat and snappy experience with the tool. Would you please show us a little love by rating us in the <a href="https://wordpress.org/support/plugin/wp-user-frontend/reviews/#new-post" target="_blank"><strong>WordPress.org</strong></a>?', 'wp-user-frontend' ); ?></p>
189
 
190
  <ul class="wpuf-review-ul">
191
  <li><a href="https://wordpress.org/support/plugin/wp-user-frontend/reviews/#new-post" target="_blank"><span class="dashicons dashicons-external"></span><?php esc_html_e( 'Sure! I\'d love to!', 'wp-user-frontend' ); ?></a></li>
assets/js/billing-address.js CHANGED
@@ -20,7 +20,7 @@ jQuery(function($){
20
  isValid = false;
21
  }
22
  return isValid;
23
- }
24
 
25
  $('#wpuf-payment-gateway').submit(function (e) {
26
  if ( ! window.wpuf_validate_address(e) ) {
@@ -32,18 +32,26 @@ jQuery(function($){
32
 
33
  $('#wpuf-ajax-address-form').submit(function (e) {
34
  e.preventDefault();
 
35
  $.post(ajax_object.ajaxurl, {
 
36
  action: 'wpuf_address_ajax_action',
37
- data: $('#wpuf-ajax-address-form').serialize(),
 
 
 
 
 
38
  });
39
  });
40
 
41
  $( document.body ).on('change', 'select#wpuf_biiling_country', function() {
42
  var $this = $(this), $tr = $this.closest('tr');
43
  var data = {
44
- action: 'wpuf_get_shop_states',
45
  country: $(this).val(),
46
  field_name: $("#wpuf_biiling_state").attr("name"),
 
47
  };
48
  $.post(ajax_object.ajaxurl, data, function (response) {
49
  if( 'nostates' == response ) {
20
  isValid = false;
21
  }
22
  return isValid;
23
+ };
24
 
25
  $('#wpuf-payment-gateway').submit(function (e) {
26
  if ( ! window.wpuf_validate_address(e) ) {
32
 
33
  $('#wpuf-ajax-address-form').submit(function (e) {
34
  e.preventDefault();
35
+ var $wpuf_cc_address = jQuery('#wpuf-address-country-state');
36
  $.post(ajax_object.ajaxurl, {
37
+ _wpnonce: $("#_wpnonce").val(),
38
  action: 'wpuf_address_ajax_action',
39
+ billing_country: $wpuf_cc_address.find('#wpuf_biiling_country').val(),
40
+ billing_state: $wpuf_cc_address.find('#wpuf_biiling_state').val(),
41
+ billing_add_line1: $wpuf_cc_address.find('#wpuf_biiling_add_line_1').val(),
42
+ billing_add_line2: $wpuf_cc_address.find('#wpuf_biiling_add_line_2').val(),
43
+ billing_city: $wpuf_cc_address.find('#wpuf_biiling_city').val(),
44
+ billing_zip: $wpuf_cc_address.find('#wpuf_biiling_zip_code').val(),
45
  });
46
  });
47
 
48
  $( document.body ).on('change', 'select#wpuf_biiling_country', function() {
49
  var $this = $(this), $tr = $this.closest('tr');
50
  var data = {
51
+ action: 'wpuf-ajax-address',
52
  country: $(this).val(),
53
  field_name: $("#wpuf_biiling_state").attr("name"),
54
+ _wpnonce: $("#_wpnonce").val()
55
  };
56
  $.post(ajax_object.ajaxurl, data, function (response) {
57
  if( 'nostates' == response ) {
class/subscription.php CHANGED
@@ -412,33 +412,6 @@ class WPUF_Subscription {
412
  ] );
413
  }
414
 
415
- /**
416
- * Update users subscription
417
- *
418
- * Updates the pack when new re-curring payment IPN notification is being
419
- * sent from PayPal.
420
- *
421
- * @return void
422
- */
423
- /*public function update_paypal_subscr_payment() {
424
- $txn_type = isset( $_POST['txn_type'] ) ? sanitize_text_field( wp_unslash( $_POST['txn_type'] ) ) : '';
425
- $payment_status = isset( $_POST['payment_status'] ) ? sanitize_text_field( wp_unslash( $_POST['payment_status'] ) ) : '';
426
-
427
- $custom = isset( $_POST['custom'] ) ? sanitize_text_field( wp_unslash( $_POST['custom'] ) ) : '';
428
-
429
- if ( $txn_type != 'subscr_payment' ) {
430
- return;
431
- }
432
-
433
- if ( strtolower( $payment_status ) != 'completed' ) {
434
- return;
435
- }
436
-
437
- $pack = $this->get_subscription( $pack_id );
438
- $payer = json_decode( stripcslashes( $custom ) );
439
-
440
- $this->update_user_subscription_meta( $payer->payer_id, $pack );
441
- } */
442
 
443
  /**
444
  * Get a subscription row from database
412
  ] );
413
  }
414
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
415
 
416
  /**
417
  * Get a subscription row from database
class/upload.php CHANGED
@@ -111,13 +111,18 @@ class WPUF_Upload {
111
  'alt' => [],
112
  ],
113
  'input' => [
114
- 'type' => [],
115
- 'name' => [],
116
- 'value' => [],
 
 
 
 
 
117
  ],
118
  'a' => [
119
- 'href' => [],
120
- 'class' => [],
121
  'data-attach_id' => [],
122
  ],
123
  'span' => [
111
  'alt' => [],
112
  ],
113
  'input' => [
114
+ 'type' => [],
115
+ 'name' => [],
116
+ 'value' => [],
117
+ 'placeholder' => []
118
+ ],
119
+ 'textarea' => [
120
+ 'name' => [],
121
+ 'placeholder' => []
122
  ],
123
  'a' => [
124
+ 'href' => [],
125
+ 'class' => [],
126
  'data-attach_id' => [],
127
  ],
128
  'span' => [
includes/class-billing-address.php CHANGED
@@ -48,7 +48,6 @@ class WPUF_Ajax_Address_Form {
48
  $show_zip = wpuf_get_option( 'zip', 'wpuf_address_options', false );
49
 
50
  $required_class = 'bill_required';
51
- $req_div = '<span class="required">*</span>';
52
 
53
  $country_req = '';
54
  $country_hide = '';
@@ -142,12 +141,15 @@ class WPUF_Ajax_Address_Form {
142
  ?>
143
 
144
  <form class="wpuf-form form-label-above" id="wpuf-ajax-address-form" action="" method="post">
145
- <?php wp_nonce_field( 'wpuf-ajax-address' ); ?>
 
 
 
146
 
147
  <table id="wpuf-address-country-state" class="wp-list-table widefat">
148
  <tr>
149
  <td class="<?php echo isset( $country_required ) ? esc_attr( $required_class ) : null; ?>" style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo esc_attr( $country_hide ); ?>">
150
- <label><?php esc_html_e( 'Country', 'wp-user-frontend' ); ?><?php echo isset( $country_required ) ? esc_attr( $req_div ) : null; ?></label>
151
  <br>
152
  <?php
153
  if ( function_exists( 'wpuf_get_tax_rates' ) ) {
@@ -161,38 +163,65 @@ class WPUF_Ajax_Address_Form {
161
 
162
  $selected['country'] = !( empty( $address_fields['country'] ) ) ? $address_fields['country'] : $base_addr['country'];
163
 
164
- echo wp_kses_post( wpuf_select( [
165
- 'options' => $cs->countries(),
166
- 'name' => 'wpuf_biiling_country',
167
- 'selected' => $selected['country'],
168
- 'show_option_all' => false,
169
- 'show_option_none' => false,
170
- 'id' => 'wpuf_biiling_country',
171
- 'class' => 'wpuf_biiling_country',
172
- 'chosen' => false,
173
- 'placeholder' => __( 'Choose a country', 'wp-user-frontend' ),
174
- ] ) ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
175
  </td>
176
- <td class="<?php echo isset( $state_required ) ? esc_attr( $required_class ) : null; ?>" style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo esc_attr( $state_hide ); ?>">
177
- <label><?php esc_html_e( 'State/Province/Region', 'wp-user-frontend' ); ?><?php echo isset( $state_required ) ? esc_attr( $req_div ) : null; ?></label>
 
178
  <br>
179
  <?php
180
- $states = $cs->getStates( $selected['country'] );
181
- $selected['state'] = !( empty( $address_fields['state'] ) ) ? $address_fields['state'] : $base_addr['state'];
182
- echo wp_kses_post( wpuf_select( [
183
- 'options' => $states,
184
- 'name' => 'wpuf_biiling_state',
185
- 'selected' => $selected['state'],
186
- 'show_option_all' => false,
187
- 'show_option_none' => false,
188
- 'id' => 'wpuf_biiling_state',
189
- 'class' => 'wpuf_biiling_state',
190
- 'chosen' => false,
191
- 'placeholder' => __( 'Choose a state', 'wp-user-frontend' ),
192
- ] ) ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
193
  </td>
194
  <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo esc_attr( $add1_hide ); ?>">
195
- <div class="wpuf-label"><?php esc_html_e( 'Address Line 1 ', 'wp-user-frontend' ); ?><?php echo isset( $address1_required ) ? esc_attr( $req_div ) : null; ?></div>
196
  <div class="wpuf-fields">
197
  <input type="text" class="input <?php echo isset( $address1_required ) ? esc_attr( $required_class ) : null; ?>" name="wpuf_biiling_add_line_1"
198
  id="wpuf_biiling_add_line_1"
@@ -200,7 +229,7 @@ class WPUF_Ajax_Address_Form {
200
  </div>
201
  </td>
202
  <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo esc_attr( $add2_hide ); ?>">
203
- <div class="wpuf-label"><?php esc_html_e( 'Address Line 2 ', 'wp-user-frontend' ); ?><?php echo isset( $address2_required ) ? esc_attr( $req_div ) : null; ?></div>
204
  <div class="wpuf-fields">
205
  <input type="text" class="input <?php echo isset( $address2_required ) ? esc_attr( $required_class ) : null; ?>" name="wpuf_biiling_add_line_2"
206
  id="wpuf_biiling_add_line_2"
@@ -208,14 +237,14 @@ class WPUF_Ajax_Address_Form {
208
  </div>
209
  </td>
210
  <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo esc_attr( $city_hide ); ?>">
211
- <div class="wpuf-label"><?php esc_html_e( 'City', 'wp-user-frontend' ); ?><?php echo isset( $city_required ) ? esc_attr( $req_div ) : null; ?></div>
212
  <div class="wpuf-fields">
213
  <input type="text" class="input <?php echo isset( $city_required ) ? esc_attr( $required_class ) : null; ?>" name="wpuf_biiling_city" id="wpuf_biiling_city"
214
  value="<?php echo esc_attr( $address_fields['city'] ); ?>"/>
215
  </div>
216
  </td>
217
  <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo esc_attr( $zip_hide ); ?>">
218
- <div class="wpuf-label"><?php esc_html_e( 'Postal Code/ZIP', 'wp-user-frontend' ); ?><?php echo isset( $zip_required ) ? esc_attr( $req_div ) : null; ?></div>
219
  <div class="wpuf-fields">
220
  <input type="text" class="input <?php echo isset( $zip_required ) ? esc_attr( $required_class ) : null; ?>" name="wpuf_biiling_zip_code" id="wpuf_biiling_zip_code"
221
  value="<?php echo esc_attr( $address_fields['zip_code'] ); ?>"/>
@@ -239,45 +268,40 @@ class WPUF_Ajax_Address_Form {
239
  * Ajax Form action
240
  */
241
  public function ajax_form_action() {
242
- $nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_key( wp_unslash( $_REQUEST['_wpnonce'] ) ) : '';
243
 
244
- if ( isset( $nonce ) && ! wp_verify_nonce( $nonce, 'wpuf-ajax-address' ) ) {
245
  return ;
246
  }
247
 
248
- if ( isset( $_POST ) ) {
249
- $post_data = isset( $_POST['data'] ) ? sanitize_text_field( wp_unslash( $_POST['data'] ) ) : '';
250
- parse_str( $post_data, $_POST );
251
 
252
- $user_id = get_current_user_id();
253
 
254
- $address_fields = [];
255
 
256
- $add_line_1 = isset( $_POST['wpuf_biiling_add_line_1'] ) ? sanitize_text_field( wp_unslash( $_POST['wpuf_biiling_add_line_1'] ) ) : '';
257
- $add_line_2 = isset( $_POST['wpuf_biiling_add_line_2'] ) ? sanitize_text_field( wp_unslash( $_POST['wpuf_biiling_add_line_2'] ) ) : '';
258
- $city = isset( $_POST['wpuf_biiling_city'] ) ? sanitize_text_field( wp_unslash( $_POST['wpuf_biiling_city'] ) ) : '';
259
 
260
- $state = isset( $_POST['wpuf_biiling_state'] ) ? sanitize_text_field( wp_unslash( $_POST['wpuf_biiling_state'] ) ) : '';
261
- $zip_code = isset( $_POST['wpuf_biiling_state'] ) ? sanitize_text_field( wp_unslash( $_POST['wpuf_biiling_state'] ) ) : '';
262
- $country = isset( $_POST['wpuf_biiling_country'] ) ? sanitize_text_field( wp_unslash( $_POST['wpuf_biiling_country'] ) ) : '';
263
 
264
- if ( $add_line_1 && $city && $state && $zip_code && $country ) {
265
- $address_fields = [
266
- 'add_line_1' => $add_line_1,
267
- 'add_line_2' => $add_line_2,
268
- 'city' => $city,
269
- 'state' => $state,
270
- 'zip_code' => $zip_code,
271
- 'country' => $country,
272
- ];
273
 
274
- update_user_meta( $user_id, 'wpuf_address_fields', $address_fields );
275
 
276
- $msg = '<div class="wpuf-success">' . __( 'Billing address is updated.', 'wp-user-frontend' ) . '</div>';
277
 
278
- echo wp_kses_post( $msg );
279
- exit();
280
- }
281
- }
282
  }
283
  }
48
  $show_zip = wpuf_get_option( 'zip', 'wpuf_address_options', false );
49
 
50
  $required_class = 'bill_required';
 
51
 
52
  $country_req = '';
53
  $country_hide = '';
141
  ?>
142
 
143
  <form class="wpuf-form form-label-above" id="wpuf-ajax-address-form" action="" method="post">
144
+ <?php
145
+ wp_nonce_field( 'wpuf-ajax-address' );
146
+ wp_nonce_field( 'wpuf_address_ajax_action', 'wpuf_save_address_nonce' );
147
+ ?>
148
 
149
  <table id="wpuf-address-country-state" class="wp-list-table widefat">
150
  <tr>
151
  <td class="<?php echo isset( $country_required ) ? esc_attr( $required_class ) : null; ?>" style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo esc_attr( $country_hide ); ?>">
152
+ <label><?php esc_html_e( 'Country', 'wp-user-frontend' ); ?><?php echo isset( $country_required ) ? wp_kses( '<span class="required">*</span>', array( 'span' => array() ) ) : null; ?></label>
153
  <br>
154
  <?php
155
  if ( function_exists( 'wpuf_get_tax_rates' ) ) {
163
 
164
  $selected['country'] = !( empty( $address_fields['country'] ) ) ? $address_fields['country'] : $base_addr['country'];
165
 
166
+ echo wp_kses( wpuf_select( [
167
+ 'options' => $cs->countries(),
168
+ 'name' => 'wpuf_biiling_country',
169
+ 'selected' => $selected['country'],
170
+ 'show_option_all' => false,
171
+ 'show_option_none' => false,
172
+ 'id' => 'wpuf_biiling_country',
173
+ 'class' => 'wpuf_biiling_country',
174
+ 'chosen' => false,
175
+ 'placeholder' => __( 'Choose a country', 'wp-user-frontend' ),
176
+ ]
177
+ ), [
178
+ 'select' => [
179
+ 'class' => [],
180
+ 'name' => [],
181
+ 'id' => [],
182
+ 'data-placeholder' => []
183
+ ],
184
+ 'option' => [
185
+ 'value' => [],
186
+ 'class' => [],
187
+ 'id' => []
188
+ ],
189
+ ] ); ?>
190
  </td>
191
+ <td class="<?php echo isset( $state_required ) ? esc_attr( $required_class ) : null; ?>"
192
+ style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo esc_attr( $state_hide ); ?>">
193
+ <label><?php esc_html_e( 'State/Province/Region', 'wp-user-frontend' ); ?><?php echo isset( $state_required ) ? wp_kses( '<span class="required">*</span>', array( 'span' => array() ) ) : null; ?></label>
194
  <br>
195
  <?php
196
+ $states = $cs->getStates( $selected['country'] );
197
+ $selected['state'] = ! ( empty( $address_fields['state'] ) ) ? $address_fields['state'] : $base_addr['state'];
198
+ echo wp_kses( wpuf_select( [
199
+ 'options' => $states,
200
+ 'name' => 'wpuf_biiling_state',
201
+ 'selected' => $selected['state'],
202
+ 'show_option_all' => false,
203
+ 'show_option_none' => false,
204
+ 'id' => 'wpuf_biiling_state',
205
+ 'class' => 'wpuf_biiling_state',
206
+ 'chosen' => false,
207
+ 'placeholder' => __( 'Choose a state', 'wp-user-frontend' ),
208
+ ]
209
+ ), [
210
+ 'select' => [
211
+ 'class' => [],
212
+ 'name' => [],
213
+ 'id' => [],
214
+ 'data-placeholder' => []
215
+ ],
216
+ 'option' => [
217
+ 'value' => [],
218
+ 'class' => [],
219
+ 'id' => []
220
+ ],
221
+ ] ); ?>
222
  </td>
223
  <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo esc_attr( $add1_hide ); ?>">
224
+ <div class="wpuf-label"><?php esc_html_e( 'Address Line 1 ', 'wp-user-frontend' ); ?><?php echo isset( $address1_required ) ? wp_kses( '<span class="required">*</span>', array( 'span' => array() ) ) : null; ?></div>
225
  <div class="wpuf-fields">
226
  <input type="text" class="input <?php echo isset( $address1_required ) ? esc_attr( $required_class ) : null; ?>" name="wpuf_biiling_add_line_1"
227
  id="wpuf_biiling_add_line_1"
229
  </div>
230
  </td>
231
  <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo esc_attr( $add2_hide ); ?>">
232
+ <div class="wpuf-label"><?php esc_html_e( 'Address Line 2 ', 'wp-user-frontend' ); ?><?php echo isset( $address2_required ) ? wp_kses( '<span class="required">*</span>', array( 'span' => array() ) ) : null; ?></div>
233
  <div class="wpuf-fields">
234
  <input type="text" class="input <?php echo isset( $address2_required ) ? esc_attr( $required_class ) : null; ?>" name="wpuf_biiling_add_line_2"
235
  id="wpuf_biiling_add_line_2"
237
  </div>
238
  </td>
239
  <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo esc_attr( $city_hide ); ?>">
240
+ <div class="wpuf-label"><?php esc_html_e( 'City', 'wp-user-frontend' ); ?><?php echo isset( $city_required ) ? wp_kses( '<span class="required">*</span>', array( 'span' => array() ) ) : null; ?></div>
241
  <div class="wpuf-fields">
242
  <input type="text" class="input <?php echo isset( $city_required ) ? esc_attr( $required_class ) : null; ?>" name="wpuf_biiling_city" id="wpuf_biiling_city"
243
  value="<?php echo esc_attr( $address_fields['city'] ); ?>"/>
244
  </div>
245
  </td>
246
  <td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo esc_attr( $zip_hide ); ?>">
247
+ <div class="wpuf-label"><?php esc_html_e( 'Postal Code/ZIP', 'wp-user-frontend' ); ?><?php echo isset( $zip_required ) ? esc_html( wp_kses( '<span class="required">*</span>', array( 'span' => array() ) ) ) : null; ?></div>
248
  <div class="wpuf-fields">
249
  <input type="text" class="input <?php echo isset( $zip_required ) ? esc_attr( $required_class ) : null; ?>" name="wpuf_biiling_zip_code" id="wpuf_biiling_zip_code"
250
  value="<?php echo esc_attr( $address_fields['zip_code'] ); ?>"/>
268
  * Ajax Form action
269
  */
270
  public function ajax_form_action() {
271
+ $nonce = isset( $_POST['wpuf_save_address_nonce'] ) ? sanitize_key( wp_unslash( $_POST['wpuf_save_address_nonce'] ) ) : '';
272
 
273
+ if ( ! empty( $nonce ) && ! wp_verify_nonce( $nonce, 'wpuf_address_ajax_action' ) ) {
274
  return ;
275
  }
276
 
277
+ $post_data = wp_unslash( $_POST );
 
 
278
 
279
+ $user_id = get_current_user_id();
280
 
281
+ $address_fields = [];
282
 
283
+ $add_line_1 = isset( $post_data['billing_add_line1'] ) ? sanitize_text_field( wp_unslash( $post_data['billing_add_line1'] ) ) : '';
284
+ $add_line_2 = isset( $post_data['billing_add_line2'] ) ? sanitize_text_field( wp_unslash( $post_data['billing_add_line2'] ) ) : '';
285
+ $city = isset( $post_data['billing_city'] ) ? sanitize_text_field( wp_unslash( $post_data['billing_city'] ) ) : '';
286
 
287
+ $state = isset( $post_data['billing_state'] ) ? sanitize_text_field( wp_unslash( $post_data['billing_state'] ) ) : '';
288
+ $zip_code = isset( $post_data['billing_zip'] ) ? sanitize_text_field( wp_unslash( $post_data['billing_zip'] ) ) : '';
289
+ $country = isset( $post_data['billing_country'] ) ? sanitize_text_field( wp_unslash( $post_data['billing_country'] ) ) : '';
290
 
291
+ $address_fields = [
292
+ 'add_line_1' => $add_line_1,
293
+ 'add_line_2' => $add_line_2,
294
+ 'city' => $city,
295
+ 'state' => $state,
296
+ 'zip_code' => $zip_code,
297
+ 'country' => $country,
298
+ ];
 
299
 
300
+ update_user_meta( $user_id, 'wpuf_address_fields', $address_fields );
301
 
302
+ $msg = '<div class="wpuf-success">' . __( 'Billing address is updated.', 'wp-user-frontend' ) . '</div>';
303
 
304
+ echo wp_kses_post( $msg );
305
+ exit();
 
 
306
  }
307
  }
includes/class-frontend-form-post.php CHANGED
@@ -22,6 +22,7 @@ class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form {
22
  add_action( 'init', [ $this, 'publish_guest_post' ] );
23
  // draft
24
  add_action( 'wp_ajax_wpuf_draft_post', [ $this, 'draft_post' ] );
 
25
  // form preview
26
  add_action( 'wp_ajax_wpuf_form_preview', [ $this, 'preview_form' ] );
27
  $this->set_wp_post_types();
@@ -177,15 +178,15 @@ class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form {
177
  list( $post_vars, $taxonomy_vars, $meta_vars ) =$this->get_input_fields( $this->form_fields );
178
 
179
  $entry_fields = $form->prepare_entries();
180
- $post_content = isset( $_POST[ 'post_content' ] ) ? sanitize_text_field( wp_unslash( $_POST[ 'post_content' ] ) ) : '';
181
-
182
  $postarr = [
183
  'post_type' => $this->form_settings['post_type'],
184
  'post_status' => wpuf_get_draft_post_status( $this->form_settings ),
185
  'post_author' => get_current_user_id(),
186
  'post_title' => isset( $_POST['post_title'] ) ? sanitize_text_field( wp_unslash( $_POST['post_title'] ) ) : '',
187
  'post_content' => $post_content,
188
- 'post_excerpt' => isset( $_POST['post_excerpt'] ) ? sanitize_text_field( wp_unslash( $_POST['post_excerpt'] ) ) : '',
189
  ];
190
 
191
  $category = isset( $_POST['category'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_POST['category'] ) ) : '';
@@ -204,7 +205,7 @@ class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form {
204
  }
205
 
206
  if ( isset( $_POST['tags'] ) ) {
207
- $postarr['tags_input'] = explode( ',', array_map( 'sanitize_text_field', wp_unslash( $_POST['tags'] ) ) );
208
  }
209
 
210
  // if post_id is passed, we update the post
22
  add_action( 'init', [ $this, 'publish_guest_post' ] );
23
  // draft
24
  add_action( 'wp_ajax_wpuf_draft_post', [ $this, 'draft_post' ] );
25
+ add_action( 'wp_ajax_nopriv_wpuf_draft_post', [ $this, 'draft_post' ] );
26
  // form preview
27
  add_action( 'wp_ajax_wpuf_form_preview', [ $this, 'preview_form' ] );
28
  $this->set_wp_post_types();
178
  list( $post_vars, $taxonomy_vars, $meta_vars ) =$this->get_input_fields( $this->form_fields );
179
 
180
  $entry_fields = $form->prepare_entries();
181
+ $allowed_tags = wp_kses_allowed_html( 'post' );
182
+ $post_content = isset( $_POST[ 'post_content' ] ) ? wp_kses( wp_unslash( $_POST[ 'post_content' ] ), $allowed_tags ) : '';
183
  $postarr = [
184
  'post_type' => $this->form_settings['post_type'],
185
  'post_status' => wpuf_get_draft_post_status( $this->form_settings ),
186
  'post_author' => get_current_user_id(),
187
  'post_title' => isset( $_POST['post_title'] ) ? sanitize_text_field( wp_unslash( $_POST['post_title'] ) ) : '',
188
  'post_content' => $post_content,
189
+ 'post_excerpt' => isset( $_POST['post_excerpt'] ) ? wp_kses( wp_unslash( $_POST['post_excerpt'] ), $allowed_tags ) : '',
190
  ];
191
 
192
  $category = isset( $_POST['category'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_POST['category'] ) ) : '';
205
  }
206
 
207
  if ( isset( $_POST['tags'] ) ) {
208
+ $postarr['tags_input'] = explode( ',', sanitize_text_field( wp_unslash( $_POST['tags'] ) ) );
209
  }
210
 
211
  // if post_id is passed, we update the post
includes/class-frontend-render-form.php CHANGED
@@ -645,7 +645,7 @@ class WPUF_Frontend_Render_Form {
645
  // process repeatable fields separately
646
  // if the input is array type, implode with separator in a field
647
  // /check_ajax_referer( 'wpuf_form_add' );
648
- $post_data = wp_unslash( $_POST );
649
  $files = [];
650
  $meta_key_value = [];
651
  $multi_repeated = []; //multi repeated fields will in sotre duplicated meta key
645
  // process repeatable fields separately
646
  // if the input is array type, implode with separator in a field
647
  // /check_ajax_referer( 'wpuf_form_add' );
648
+ $post_data = wp_unslash( $_POST ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
649
  $files = [];
650
  $meta_key_value = [];
651
  $multi_repeated = []; //multi repeated fields will in sotre duplicated meta key
includes/class-login-widget.php CHANGED
@@ -31,7 +31,7 @@ class WPUF_Login_Widget extends WP_Widget {
31
  $nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_key( wp_unslash( $_REQUEST['_wpnonce'] ) ) : '';
32
 
33
  if ( isset( $nonce ) && ! wp_verify_nonce( $nonce , 'wpuf_lost_pass' ) ) {
34
- return ;
35
  }
36
 
37
  if ( empty( $user_login ) || empty( $user_pass ) ) {
@@ -68,7 +68,7 @@ class WPUF_Login_Widget extends WP_Widget {
68
  $nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_key( wp_unslash( $_REQUEST['_wpnonce'] ) ) : '';
69
 
70
  if ( isset( $nonce ) && ! wp_verify_nonce( $nonce, 'wpuf_lost_pass' ) ) {
71
- return ;
72
  }
73
 
74
  // Check if input variables are empty
@@ -181,15 +181,15 @@ class WPUF_Login_Widget extends WP_Widget {
181
  $log_in_label = apply_filters( 'widget_text', $instance['log_in_label'] );
182
  $pass_reset_label = apply_filters( 'widget_text', $instance['pass_reset_label'] );
183
 
184
- echo esc_html( $args['before_widget'] );
185
 
186
  if ( !empty( $title ) ) {
187
- echo esc_html( $args['before_title'] . $title . $args['after_title'] );
188
  }
189
 
190
  if ( is_user_logged_in() ) {
191
  $user_id = get_current_user_id();
192
- echo esc_html( get_avatar( $user_id, 24 ) );
193
  }
194
 
195
  $login_args = [
@@ -207,14 +207,18 @@ class WPUF_Login_Widget extends WP_Widget {
207
  <div class="wpuf-ajax-login-form">
208
  <div class="wpuf-ajax-errors"></div>
209
 
210
- <p><?php echo esc_html( $log_in_header ); ?></p>
211
 
212
  <?php
213
  wp_login_form( $login_args );
214
 
215
  if ( get_option( 'users_can_register' ) ) {
216
  $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register', 'wp-user-frontend' ) );
217
- echo esc_html( $registration_url );
 
 
 
 
218
  echo esc_html( apply_filters( 'login_link_separator', ' | ' ) );
219
  }?>
220
  <a href="#wpuf-ajax-lost-pw-url" id="wpuf-ajax-lost-pw-url"><?php esc_html_e( 'Lost your password?', 'wp-user-frontend' ); ?></a>
@@ -223,7 +227,7 @@ class WPUF_Login_Widget extends WP_Widget {
223
  <!-- Lost Password form -->
224
  <div class="wpuf-ajax-reset-password-form">
225
  <form id="wpuf_ajax_reset_pass_form" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="POST">
226
- <div class="wpuf-ajax-message"> <?php echo esc_html( $pwd_reset_header ); ?></div>
227
  <p>
228
  <label for="wpuf-user_login"><?php esc_html_e( 'Username or E-mail:', 'wp-user-frontend' ); ?></label>
229
  <input type="text" name="user_login" id="wpuf-user_login" class="input" value="" size="20" />
@@ -246,7 +250,7 @@ class WPUF_Login_Widget extends WP_Widget {
246
  if ( get_option( 'users_can_register' ) ) {
247
  echo esc_html( apply_filters( 'login_link_separator', ' | ' ) );
248
  $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register', 'wp-user-frontend' ) );
249
- echo esc_url( $registration_url );
250
  }
251
  ?>
252
  </div>
@@ -259,7 +263,7 @@ class WPUF_Login_Widget extends WP_Widget {
259
  </div>
260
 
261
  <?php
262
- echo esc_html( $args['after_widget'] );
263
  }
264
 
265
  /**
31
  $nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_key( wp_unslash( $_REQUEST['_wpnonce'] ) ) : '';
32
 
33
  if ( isset( $nonce ) && ! wp_verify_nonce( $nonce , 'wpuf_lost_pass' ) ) {
34
+
35
  }
36
 
37
  if ( empty( $user_login ) || empty( $user_pass ) ) {
68
  $nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_key( wp_unslash( $_REQUEST['_wpnonce'] ) ) : '';
69
 
70
  if ( isset( $nonce ) && ! wp_verify_nonce( $nonce, 'wpuf_lost_pass' ) ) {
71
+
72
  }
73
 
74
  // Check if input variables are empty
181
  $log_in_label = apply_filters( 'widget_text', $instance['log_in_label'] );
182
  $pass_reset_label = apply_filters( 'widget_text', $instance['pass_reset_label'] );
183
 
184
+ echo wp_kses_post( $args['before_widget'] );
185
 
186
  if ( !empty( $title ) ) {
187
+ echo wp_kses_post( $args['before_title'] . $title . $args['after_title'] );
188
  }
189
 
190
  if ( is_user_logged_in() ) {
191
  $user_id = get_current_user_id();
192
+ echo wp_kses_post( get_avatar( $user_id, 24 ) );
193
  }
194
 
195
  $login_args = [
207
  <div class="wpuf-ajax-login-form">
208
  <div class="wpuf-ajax-errors"></div>
209
 
210
+ <p><?php echo wp_kses_post( $log_in_header ); ?></p>
211
 
212
  <?php
213
  wp_login_form( $login_args );
214
 
215
  if ( get_option( 'users_can_register' ) ) {
216
  $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register', 'wp-user-frontend' ) );
217
+ echo wp_kses( $registration_url, [
218
+ 'a' => [
219
+ 'href' => []
220
+ ]
221
+ ] );
222
  echo esc_html( apply_filters( 'login_link_separator', ' | ' ) );
223
  }?>
224
  <a href="#wpuf-ajax-lost-pw-url" id="wpuf-ajax-lost-pw-url"><?php esc_html_e( 'Lost your password?', 'wp-user-frontend' ); ?></a>
227
  <!-- Lost Password form -->
228
  <div class="wpuf-ajax-reset-password-form">
229
  <form id="wpuf_ajax_reset_pass_form" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="POST">
230
+ <div class="wpuf-ajax-message"> <?php echo wp_kses_post( $pwd_reset_header ); ?></div>
231
  <p>
232
  <label for="wpuf-user_login"><?php esc_html_e( 'Username or E-mail:', 'wp-user-frontend' ); ?></label>
233
  <input type="text" name="user_login" id="wpuf-user_login" class="input" value="" size="20" />
250
  if ( get_option( 'users_can_register' ) ) {
251
  echo esc_html( apply_filters( 'login_link_separator', ' | ' ) );
252
  $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register', 'wp-user-frontend' ) );
253
+ echo wp_kses_post( $registration_url );
254
  }
255
  ?>
256
  </div>
263
  </div>
264
 
265
  <?php
266
+ echo wp_kses_post( $args['after_widget'] );
267
  }
268
 
269
  /**
includes/fields/class-abstract-fields.php CHANGED
@@ -651,7 +651,7 @@ abstract class WPUF_Field_Contract {
651
  'type' => 'text',
652
  'section' => 'advanced',
653
  'priority' => 15,
654
- 'help_text' => __( 'Numebr of words the author to be restricted in', 'wp-user-frontend' ),
655
  ],
656
  ];
657
  }
651
  'type' => 'text',
652
  'section' => 'advanced',
653
  'priority' => 15,
654
+ 'help_text' => __( 'Number of words the author to be restricted in', 'wp-user-frontend' ),
655
  ],
656
  ];
657
  }
includes/fields/class-field-html.php CHANGED
@@ -26,7 +26,7 @@ class WPUF_Form_Field_HTML extends WPUF_Field_Contract {
26
  <li <?php $this->print_list_attributes( $field_settings ); ?>>
27
 
28
  <div class="wpuf-fields <?php echo 'html_' . esc_attr( $form_id ); ?><?php echo ' wpuf_' . esc_attr( $field_settings['name'] ) . '_' . esc_attr( $form_id ); ?>">
29
- <?php echo wp_kses_post( $field_settings['html'] ); ?>
30
  </div>
31
 
32
  </li>
26
  <li <?php $this->print_list_attributes( $field_settings ); ?>>
27
 
28
  <div class="wpuf-fields <?php echo 'html_' . esc_attr( $form_id ); ?><?php echo ' wpuf_' . esc_attr( $field_settings['name'] ) . '_' . esc_attr( $form_id ); ?>">
29
+ <?php echo $field_settings['html']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
30
  </div>
31
 
32
  </li>
includes/fields/class-field-image.php CHANGED
@@ -58,7 +58,7 @@ class WPUF_Form_Field_Image extends WPUF_Field_Contract {
58
  <?php
59
  if ( $has_images ) {
60
  foreach ( $images as $attach_id ) {
61
- echo wp_kses_post( WPUF_Upload::attach_html( $attach_id, $field_settings['name'] ),[
62
  'li' => [
63
  'class' => []
64
  ],
58
  <?php
59
  if ( $has_images ) {
60
  foreach ( $images as $attach_id ) {
61
+ echo wp_kses( WPUF_Upload::attach_html( $attach_id, $field_settings['name'] ),[
62
  'li' => [
63
  'class' => []
64
  ],
includes/free/class-login.php CHANGED
@@ -589,9 +589,9 @@ class WPUF_Simple_Login {
589
 
590
  $pass1 = sanitize_text_field( wp_unslash( $_POST['pass1'] ) );
591
  $pass2 = sanitize_text_field( wp_unslash( $_POST['pass2'] ) );
592
- $key = sanitize_key( wp_unslash( $_POST['key'] ) );
593
- $login = sanitize_key( wp_unslash( $_POST['login'] ) );
594
- $nonce = sanitize_key( wp_unslash( $_POST['_wpnonce'] ) );
595
 
596
  // verify reset key again
597
  $user = $this->check_password_reset_key( $key, $login );
@@ -971,10 +971,12 @@ class WPUF_Simple_Login {
971
  $blogname = $GLOBALS['current_site']->site_name;
972
  }
973
 
 
 
974
  $title = sprintf( __( '[%s] Password Reset', 'wp-user-frontend' ), $blogname );
975
  $title = apply_filters( 'retrieve_password_title', $title );
976
 
977
- $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login );
978
 
979
  if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) ) {
980
  wp_die( esc_html( __( 'The e-mail could not be sent.', 'wp-user-frontend' ) ) . "<br />\n" . esc_html( __( 'Possible reason: your host may have disabled the mail() function.', 'wp-user-frontend' ) ) );
@@ -1038,8 +1040,7 @@ class WPUF_Simple_Login {
1038
  */
1039
  public static function get_posted_value( $key ) {
1040
  if ( isset( $_REQUEST[$key] ) ) {
1041
- $requested_key = sanitize_key( wp_unslash( $_REQUEST[$key] ) );
1042
- return esc_attr( $requested_key );
1043
  }
1044
 
1045
  return '';
589
 
590
  $pass1 = sanitize_text_field( wp_unslash( $_POST['pass1'] ) );
591
  $pass2 = sanitize_text_field( wp_unslash( $_POST['pass2'] ) );
592
+ $key = sanitize_text_field( wp_unslash( $_POST['key'] ) );
593
+ $login = sanitize_text_field( wp_unslash( $_POST['login'] ) );
594
+ $nonce = sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) );
595
 
596
  // verify reset key again
597
  $user = $this->check_password_reset_key( $key, $login );
971
  $blogname = $GLOBALS['current_site']->site_name;
972
  }
973
 
974
+ $user_data = get_user_by( 'login', $user_login );
975
+
976
  $title = sprintf( __( '[%s] Password Reset', 'wp-user-frontend' ), $blogname );
977
  $title = apply_filters( 'retrieve_password_title', $title );
978
 
979
+ $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data );
980
 
981
  if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) ) {
982
  wp_die( esc_html( __( 'The e-mail could not be sent.', 'wp-user-frontend' ) ) . "<br />\n" . esc_html( __( 'Possible reason: your host may have disabled the mail() function.', 'wp-user-frontend' ) ) );
1040
  */
1041
  public static function get_posted_value( $key ) {
1042
  if ( isset( $_REQUEST[$key] ) ) {
1043
+ return sanitize_text_field( wp_unslash( $_REQUEST[$key] ) );
 
1044
  }
1045
 
1046
  return '';
languages/wp-user-frontend.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPL2 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WP User Frontend 3.1.16\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
- "POT-Creation-Date: 2020-01-17 13:10:46+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -142,7 +142,7 @@ msgstr ""
142
 
143
  #: admin/class-admin-subscription.php:226
144
  #: admin/class-admin-subscription.php:596 class/frontend-account.php:249
145
- #: class/subscription.php:906 includes/class-user-subscription.php:305
146
  #: templates/subscriptions/pack-details.php:24
147
  msgid "Free"
148
  msgstr ""
@@ -306,7 +306,7 @@ msgstr ""
306
 
307
  #: admin/class-admin-subscription.php:774
308
  #: admin/form-builder/class-wpuf-admin-form-builder.php:264
309
- #: class/payment.php:205 class/subscription.php:810
310
  #: includes/class-list-table-subscribers.php:138 lib/appsero/Insights.php:764
311
  #: templates/dashboard/subscription.php:59
312
  msgid "Cancel"
@@ -342,7 +342,7 @@ msgstr ""
342
 
343
  #: admin/class-tools.php:44 admin/class-tools.php:111
344
  #: admin/post-forms-list-table.php:43 class/transactions-list-table.php:87
345
- #: includes/class-list-table-subscribers.php:136 wpuf-functions.php:2826
346
  msgid "All"
347
  msgstr ""
348
 
@@ -2151,7 +2151,7 @@ msgid "Congratulations!"
2151
  msgstr ""
2152
 
2153
  #: admin/installer.php:84 admin/settings-options.php:24
2154
- #: includes/free/admin/shortcode-button.php:79 wpuf-functions.php:1775
2155
  msgid "Dashboard"
2156
  msgstr ""
2157
 
@@ -2159,7 +2159,7 @@ msgstr ""
2159
  msgid "Account"
2160
  msgstr ""
2161
 
2162
- #: admin/installer.php:89 includes/class-login-widget.php:244
2163
  #: includes/free/admin/shortcode-button.php:91
2164
  msgid "Login"
2165
  msgstr ""
@@ -2167,7 +2167,7 @@ msgstr ""
2167
  #: admin/installer.php:95 class/subscription.php:377 class/subscription.php:397
2168
  #: class/subscription.php:398 class/subscription.php:399
2169
  #: includes/free/admin/shortcode-button.php:99
2170
- #: templates/dashboard/dashboard.php:19 wpuf-functions.php:1778
2171
  msgid "Subscription"
2172
  msgstr ""
2173
 
@@ -2574,18 +2574,6 @@ msgstr ""
2574
  msgid "WP User Frontend Pro is the most powerful solution for your frontend needs."
2575
  msgstr ""
2576
 
2577
- #: admin/promotion.php:187
2578
- msgid "Enjoying <strong>WP User Frontend</strong>?"
2579
- msgstr ""
2580
-
2581
- #: admin/promotion.php:188
2582
- msgid ""
2583
- "Hope that you had a neat and snappy experience with the tool. Would you "
2584
- "please show us a little love by rating us in the <a "
2585
- "href=\"https://wordpress.org/support/plugin/wp-user-frontend/reviews/#new-"
2586
- "post\" target=\"_blank\"><strong>WordPress.org</strong></a>?"
2587
- msgstr ""
2588
-
2589
  #: admin/promotion.php:191
2590
  msgid "Sure! I'd love to!"
2591
  msgstr ""
@@ -3342,7 +3330,6 @@ msgstr ""
3342
  #: admin/template.php:136 admin/template.php:199
3343
  #: includes/fields/class-abstract-fields.php:506
3344
  #: includes/fields/class-abstract-fields.php:562
3345
- #: includes/fields/class-abstract-fields.php:654
3346
  msgid "Numebr of words the author to be restricted in"
3347
  msgstr ""
3348
 
@@ -3398,10 +3385,10 @@ msgid "Select Text"
3398
  msgstr ""
3399
 
3400
  #: admin/template.php:520 admin/template.php:578 admin/template.php:656
3401
- #: class/upload.php:192 includes/fields/class-field-recaptcha.php:147
3402
  #: includes/fields/class-field-sectionbreak.php:54
3403
  #: templates/dashboard/posts.php:79 templates/dashboard.php:94
3404
- #: wpuf-functions.php:837
3405
  msgid "Title"
3406
  msgstr ""
3407
 
@@ -3417,8 +3404,8 @@ msgstr ""
3417
  msgid "Enter the meta value"
3418
  msgstr ""
3419
 
3420
- #: admin/template.php:583 class/upload.php:194
3421
- #: includes/fields/class-field-sectionbreak.php:62 wpuf-functions.php:845
3422
  msgid "Description"
3423
  msgstr ""
3424
 
@@ -3612,7 +3599,7 @@ msgid "You already have activated a free package previously."
3612
  msgstr ""
3613
 
3614
  #: class/payment.php:138 includes/class-customizer.php:56
3615
- #: wpuf-functions.php:1779
3616
  msgid "Billing Address"
3617
  msgstr ""
3618
 
@@ -3787,12 +3774,12 @@ msgid "Confirm Password"
3787
  msgstr ""
3788
 
3789
  #: class/render-form.php:1341 includes/free/edit-profile.php:209
3790
- #: templates/dashboard/edit-profile.php:70
3791
  msgid "Strength indicator"
3792
  msgstr ""
3793
 
3794
  #: class/render-form.php:1403 includes/fields/class-field-post-taxonomy.php:119
3795
- #: wpuf-functions.php:1562
3796
  msgid "-- Select --"
3797
  msgstr ""
3798
 
@@ -3842,93 +3829,93 @@ msgstr ""
3842
  msgid "Parent Subscription"
3843
  msgstr ""
3844
 
3845
- #: class/subscription.php:774
3846
  msgid "Payment is complete"
3847
  msgstr ""
3848
 
3849
- #: class/subscription.php:774
3850
  msgid "Congratulations, your payment has been completed!"
3851
  msgstr ""
3852
 
3853
- #: class/subscription.php:778 class/subscription.php:782
3854
  msgid "Please buy a subscription pack to post"
3855
  msgstr ""
3856
 
3857
- #: class/subscription.php:800
3858
  msgid "<p><i>You have a subscription pack activated. </i></p>"
3859
  msgstr ""
3860
 
3861
- #: class/subscription.php:801
3862
  msgid "<p><i>Pack name: %s </i></p>"
3863
  msgstr ""
3864
 
3865
- #: class/subscription.php:803
3866
  msgid "To cancel the pack, press the following cancel button"
3867
  msgstr ""
3868
 
3869
- #: class/subscription.php:846
3870
  msgid "Day"
3871
  msgid_plural "Days"
3872
  msgstr[0] ""
3873
  msgstr[1] ""
3874
 
3875
- #: class/subscription.php:847
3876
  msgid "Week"
3877
  msgid_plural "Weeks"
3878
  msgstr[0] ""
3879
  msgstr[1] ""
3880
 
3881
- #: class/subscription.php:848
3882
  msgid "Month"
3883
  msgid_plural "Months"
3884
  msgstr[0] ""
3885
  msgstr[1] ""
3886
 
3887
- #: class/subscription.php:849
3888
  msgid "Year"
3889
  msgid_plural "Years"
3890
  msgstr[0] ""
3891
  msgstr[1] ""
3892
 
3893
- #: class/subscription.php:881
3894
  msgid "One time payment"
3895
  msgstr ""
3896
 
3897
- #: class/subscription.php:888
3898
  msgid "Every"
3899
  msgstr ""
3900
 
3901
- #: class/subscription.php:889
3902
  msgid "for"
3903
  msgstr ""
3904
 
3905
- #: class/subscription.php:889
3906
  msgid "installments"
3907
  msgstr ""
3908
 
3909
- #: class/subscription.php:895
3910
  msgid "Trial available for first %s %s"
3911
  msgstr ""
3912
 
3913
- #: class/subscription.php:899
3914
  msgid "Buy Now"
3915
  msgstr ""
3916
 
3917
- #: class/subscription.php:903
3918
  msgid "Sign Up"
3919
  msgstr ""
3920
 
3921
- #: class/subscription.php:967
3922
  msgid "There is a <strong>%s</strong> charge to add a new post."
3923
  msgstr ""
3924
 
3925
- #: class/subscription.php:983
3926
  msgid ""
3927
  "Your Subscription pack is exhausted. There is a <strong>%s</strong> charge "
3928
  "to add a new post."
3929
  msgstr ""
3930
 
3931
- #: class/subscription.php:1028
3932
  msgid "You must <a href=\"%s\">purchase a pack</a> before posting"
3933
  msgstr ""
3934
 
@@ -4006,7 +3993,7 @@ msgstr ""
4006
  msgid "No transactions found."
4007
  msgstr ""
4008
 
4009
- #: class/upload.php:193 wpuf-functions.php:841
4010
  msgid "Caption"
4011
  msgstr ""
4012
 
@@ -4048,52 +4035,52 @@ msgstr ""
4048
  msgid "Some Required Fields are not filled!"
4049
  msgstr ""
4050
 
4051
- #: includes/class-billing-address.php:150 includes/class-customizer.php:22
4052
  #: includes/class-customizer.php:66 includes/class-privacy.php:270
4053
  #: templates/dashboard/billing-address.php:89
4054
  msgid "Country"
4055
  msgstr ""
4056
 
4057
- #: includes/class-billing-address.php:173
4058
  msgid "Choose a country"
4059
  msgstr ""
4060
 
4061
- #: includes/class-billing-address.php:177 includes/class-customizer.php:23
4062
  #: includes/class-customizer.php:67 templates/dashboard/billing-address.php:74
4063
  msgid "State/Province/Region"
4064
  msgstr ""
4065
 
4066
- #: includes/class-billing-address.php:191
4067
  msgid "Choose a state"
4068
  msgstr ""
4069
 
4070
- #: includes/class-billing-address.php:195
4071
  #: templates/dashboard/billing-address.php:53
4072
  msgid "Address Line 1 "
4073
  msgstr ""
4074
 
4075
- #: includes/class-billing-address.php:203
4076
  #: templates/dashboard/billing-address.php:60
4077
  msgid "Address Line 2 "
4078
  msgstr ""
4079
 
4080
- #: includes/class-billing-address.php:211 includes/class-customizer.php:26
4081
  #: includes/class-customizer.php:70 includes/class-privacy.php:258
4082
  #: templates/dashboard/billing-address.php:67
4083
  msgid "City"
4084
  msgstr ""
4085
 
4086
- #: includes/class-billing-address.php:218 includes/class-customizer.php:27
4087
  #: includes/class-customizer.php:71 templates/dashboard/billing-address.php:84
4088
  msgid "Postal Code/ZIP"
4089
  msgstr ""
4090
 
4091
- #: includes/class-billing-address.php:226
4092
  #: templates/dashboard/billing-address.php:113
4093
  msgid "Update Billing Address"
4094
  msgstr ""
4095
 
4096
- #: includes/class-billing-address.php:276
4097
  #: templates/dashboard/billing-address.php:35
4098
  msgid "Billing address is updated."
4099
  msgstr ""
@@ -4125,7 +4112,7 @@ msgstr ""
4125
 
4126
  #: includes/class-dokan-integration.php:34
4127
  #: includes/class-wc-vendors-integration.php:108
4128
- #: templates/dashboard/dashboard.php:15 wpuf-functions.php:1776
4129
  msgid "Posts"
4130
  msgstr ""
4131
 
@@ -4176,52 +4163,52 @@ msgstr ""
4176
  msgid "Post Limit Exceeded for your purchased subscription pack."
4177
  msgstr ""
4178
 
4179
- #: includes/class-frontend-form-post.php:48
4180
  msgid "You are not logged in"
4181
  msgstr ""
4182
 
4183
- #: includes/class-frontend-form-post.php:57
4184
- #: includes/class-frontend-form-post.php:87
4185
  msgid "Invalid post"
4186
  msgstr ""
4187
 
4188
- #: includes/class-frontend-form-post.php:64
4189
  msgid "Your edit access for this post has been locked by an administrator."
4190
  msgstr ""
4191
 
4192
- #: includes/class-frontend-form-post.php:68
4193
  msgid "Your allocated time for editing this post has been expired."
4194
  msgstr ""
4195
 
4196
- #: includes/class-frontend-form-post.php:76
4197
  msgid "Your post edit access has been locked by an administrator."
4198
  msgstr ""
4199
 
4200
- #: includes/class-frontend-form-post.php:81
4201
  msgid "Post Editing is disabled"
4202
  msgstr ""
4203
 
4204
- #: includes/class-frontend-form-post.php:92
4205
  msgid "You are not allowed to edit"
4206
  msgstr ""
4207
 
4208
- #: includes/class-frontend-form-post.php:103
4209
  msgid "I don't know how to edit this post, I don't have the form ID"
4210
  msgstr ""
4211
 
4212
- #: includes/class-frontend-form-post.php:115
4213
  msgid "You can't edit a post while in pending mode."
4214
  msgstr ""
4215
 
4216
- #: includes/class-frontend-form-post.php:493
4217
  msgid "Something went wrong"
4218
  msgstr ""
4219
 
4220
- #: includes/class-frontend-form-post.php:514
4221
  msgid "Invalid email address."
4222
  msgstr ""
4223
 
4224
- #: includes/class-frontend-form-post.php:524
4225
  msgid ""
4226
  "You already have an account in our site. Please login to continue.\n"
4227
  "\n"
@@ -4230,16 +4217,16 @@ msgid ""
4230
  "Click 'Cancel' to stay at this page."
4231
  msgstr ""
4232
 
4233
- #: includes/class-frontend-form-post.php:575
4234
  msgid "You do not have sufficient permissions to access this form."
4235
  msgstr ""
4236
 
4237
- #: includes/class-frontend-form-post.php:841
4238
  msgid "Email successfully verified. Please Login."
4239
  msgstr ""
4240
 
4241
- #: includes/class-frontend-form-post.php:948
4242
- #: includes/class-frontend-form-post.php:954
4243
  msgid ""
4244
  "Thank you for posting on our site. We have sent you an confirmation email. "
4245
  "Please check your inbox!"
@@ -4336,7 +4323,7 @@ msgstr ""
4336
  msgid "To reset your password, visit the following address:"
4337
  msgstr ""
4338
 
4339
- #: includes/class-login-widget.php:154 includes/free/class-login.php:974
4340
  msgid "[%s] Password Reset"
4341
  msgstr ""
4342
 
@@ -4346,91 +4333,91 @@ msgid ""
4346
  "host may have disabled the mail() function."
4347
  msgstr ""
4348
 
4349
- #: includes/class-login-widget.php:216 includes/class-login-widget.php:248
4350
  #: includes/free/class-login.php:320 includes/free/class-registration.php:120
4351
  #: includes/free/form-element.php:332
4352
  msgid "Register"
4353
  msgstr ""
4354
 
4355
- #: includes/class-login-widget.php:220
4356
  msgid "Lost your password?"
4357
  msgstr ""
4358
 
4359
- #: includes/class-login-widget.php:228 templates/lost-pass-form.php:14
4360
  msgid "Username or E-mail:"
4361
  msgstr ""
4362
 
4363
- #: includes/class-login-widget.php:256
4364
  msgid "Log out"
4365
  msgstr ""
4366
 
4367
- #: includes/class-login-widget.php:271
4368
  msgid "WPUF Login Widget"
4369
  msgstr ""
4370
 
4371
- #: includes/class-login-widget.php:272
4372
  msgid "Username or Email Address"
4373
  msgstr ""
4374
 
4375
- #: includes/class-login-widget.php:273
4376
  msgid ""
4377
  "Please enter your username or email address. You will receive a link to "
4378
  "create a new password via email"
4379
  msgstr ""
4380
 
4381
- #: includes/class-login-widget.php:274 includes/free/edit-profile.php:102
4382
  #: includes/free/edit-user.php:97 includes/free/edit-user.php:157
4383
  #: templates/registration-form.php:54
4384
  msgid "Username"
4385
  msgstr ""
4386
 
4387
- #: includes/class-login-widget.php:275 templates/login-form.php:27
4388
  #: templates/registration-form.php:61
4389
  msgid "Password"
4390
  msgstr ""
4391
 
4392
- #: includes/class-login-widget.php:276 templates/login-form.php:71
4393
  msgid "Remember Me"
4394
  msgstr ""
4395
 
4396
- #: includes/class-login-widget.php:277 includes/free/class-login.php:316
4397
  #: includes/free/class-login.php:368 templates/login-form.php:75
4398
  msgid "Log In"
4399
  msgstr ""
4400
 
4401
- #: includes/class-login-widget.php:278 templates/reset-pass-form.php:26
4402
  msgid "Reset Password"
4403
  msgstr ""
4404
 
4405
- #: includes/class-login-widget.php:281
4406
  msgid "Title:"
4407
  msgstr ""
4408
 
4409
- #: includes/class-login-widget.php:285
4410
  msgid "Log-in Text:"
4411
  msgstr ""
4412
 
4413
- #: includes/class-login-widget.php:289
4414
  msgid "Username Label:"
4415
  msgstr ""
4416
 
4417
- #: includes/class-login-widget.php:293
4418
  msgid "Password Label:"
4419
  msgstr ""
4420
 
4421
- #: includes/class-login-widget.php:297
4422
  msgid "Remember Me Label:"
4423
  msgstr ""
4424
 
4425
- #: includes/class-login-widget.php:300
4426
  msgid "Log In Label:"
4427
  msgstr ""
4428
 
4429
- #: includes/class-login-widget.php:304
4430
  msgid "Password Reset Text:"
4431
  msgstr ""
4432
 
4433
- #: includes/class-login-widget.php:308
4434
  msgid "Password Reset Label:"
4435
  msgstr ""
4436
 
@@ -4901,6 +4888,10 @@ msgstr ""
4901
  msgid "Number of columns in textarea"
4902
  msgstr ""
4903
 
 
 
 
 
4904
  #: includes/fields/class-field-column.php:70
4905
  msgid "Number of Columns"
4906
  msgstr ""
@@ -5264,11 +5255,11 @@ msgstr ""
5264
  msgid "Someone requested that the password be reset for the following account:"
5265
  msgstr ""
5266
 
5267
- #: includes/free/class-login.php:980
5268
  msgid "The e-mail could not be sent."
5269
  msgstr ""
5270
 
5271
- #: includes/free/class-login.php:980
5272
  msgid "Possible reason: your host may have disabled the mail() function."
5273
  msgstr ""
5274
 
@@ -5364,7 +5355,7 @@ msgid ""
5364
  "be shown publicly."
5365
  msgstr ""
5366
 
5367
- #: includes/free/edit-profile.php:194 templates/dashboard/edit-profile.php:54
5368
  msgid "New Password"
5369
  msgstr ""
5370
 
@@ -5377,7 +5368,7 @@ msgid "Password Strength"
5377
  msgstr ""
5378
 
5379
  #: includes/free/edit-profile.php:233 includes/free/form-element.php:333
5380
- #: templates/dashboard/edit-profile.php:130
5381
  msgid "Update Profile"
5382
  msgstr ""
5383
 
@@ -5859,27 +5850,27 @@ msgstr ""
5859
  msgid "Thanks for being with us."
5860
  msgstr ""
5861
 
5862
- #: lib/gateway/paypal.php:62
5863
  msgid "Subscription %s at %s"
5864
  msgstr ""
5865
 
5866
- #: lib/gateway/paypal.php:92
5867
  msgid "PayPal Email"
5868
  msgstr ""
5869
 
5870
- #: lib/gateway/paypal.php:97
5871
  msgid "PayPal Instruction"
5872
  msgstr ""
5873
 
5874
- #: lib/gateway/paypal.php:104
5875
  msgid "PayPal API username"
5876
  msgstr ""
5877
 
5878
- #: lib/gateway/paypal.php:108
5879
  msgid "PayPal API password"
5880
  msgstr ""
5881
 
5882
- #: lib/gateway/paypal.php:112
5883
  msgid "PayPal API signature"
5884
  msgstr ""
5885
 
@@ -5911,23 +5902,23 @@ msgstr ""
5911
  msgid "First Name "
5912
  msgstr ""
5913
 
5914
- #: templates/dashboard/edit-profile.php:23
5915
  msgid "Last Name "
5916
  msgstr ""
5917
 
5918
- #: templates/dashboard/edit-profile.php:33
5919
  msgid "Email Address "
5920
  msgstr ""
5921
 
5922
- #: templates/dashboard/edit-profile.php:43
5923
  msgid "Current Password"
5924
  msgstr ""
5925
 
5926
- #: templates/dashboard/edit-profile.php:48
5927
  msgid "Leave this field empty to keep your password unchanged."
5928
  msgstr ""
5929
 
5930
- #: templates/dashboard/edit-profile.php:64
5931
  msgid "Confirm New Password"
5932
  msgstr ""
5933
 
@@ -6065,255 +6056,255 @@ msgstr ""
6065
  msgid "Private"
6066
  msgstr ""
6067
 
6068
- #: wpuf-functions.php:212 wpuf-functions.php:1794
6069
  msgid "-- select --"
6070
  msgstr ""
6071
 
6072
- #: wpuf-functions.php:452
6073
  msgid "Images"
6074
  msgstr ""
6075
 
6076
- #: wpuf-functions.php:453
6077
  msgid "Audio"
6078
  msgstr ""
6079
 
6080
- #: wpuf-functions.php:454
6081
  msgid "Videos"
6082
  msgstr ""
6083
 
6084
- #: wpuf-functions.php:455
6085
  msgid "PDF"
6086
  msgstr ""
6087
 
6088
- #: wpuf-functions.php:456
6089
  msgid "Office Documents"
6090
  msgstr ""
6091
 
6092
- #: wpuf-functions.php:457
6093
  msgid "Zip Archives"
6094
  msgstr ""
6095
 
6096
- #: wpuf-functions.php:458
6097
  msgid "Executable Files"
6098
  msgstr ""
6099
 
6100
- #: wpuf-functions.php:459
6101
  msgid "CSV"
6102
  msgstr ""
6103
 
6104
- #: wpuf-functions.php:864
6105
  msgid "Directions »"
6106
  msgstr ""
6107
 
6108
- #: wpuf-functions.php:1777
6109
  msgid "Edit Profile"
6110
  msgstr ""
6111
 
6112
- #: wpuf-functions.php:1904
6113
  msgid "United Arab Emirates Dirham"
6114
  msgstr ""
6115
 
6116
- #: wpuf-functions.php:1905
6117
  msgid "Australian Dollars"
6118
  msgstr ""
6119
 
6120
- #: wpuf-functions.php:1906
6121
  msgid "Argentine Peso"
6122
  msgstr ""
6123
 
6124
- #: wpuf-functions.php:1907
6125
  msgid "Bangladeshi Taka"
6126
  msgstr ""
6127
 
6128
- #: wpuf-functions.php:1908
6129
  msgid "Brazilian Real"
6130
  msgstr ""
6131
 
6132
- #: wpuf-functions.php:1909
6133
  msgid "Bulgarian Lev"
6134
  msgstr ""
6135
 
6136
- #: wpuf-functions.php:1910
6137
  msgid "Canadian Dollars"
6138
  msgstr ""
6139
 
6140
- #: wpuf-functions.php:1911
6141
  msgid "Chilean Peso"
6142
  msgstr ""
6143
 
6144
- #: wpuf-functions.php:1912
6145
  msgid "Chinese Yuan"
6146
  msgstr ""
6147
 
6148
- #: wpuf-functions.php:1913
6149
  msgid "Colombian Peso"
6150
  msgstr ""
6151
 
6152
- #: wpuf-functions.php:1914
6153
  msgid "Czech Koruna"
6154
  msgstr ""
6155
 
6156
- #: wpuf-functions.php:1915
6157
  msgid "Danish Krone"
6158
  msgstr ""
6159
 
6160
- #: wpuf-functions.php:1916
6161
  msgid "Dominican Peso"
6162
  msgstr ""
6163
 
6164
- #: wpuf-functions.php:1917
6165
  msgid "Algerian Dinar"
6166
  msgstr ""
6167
 
6168
- #: wpuf-functions.php:1918
6169
  msgid "Euros"
6170
  msgstr ""
6171
 
6172
- #: wpuf-functions.php:1919
6173
  msgid "Hong Kong Dollar"
6174
  msgstr ""
6175
 
6176
- #: wpuf-functions.php:1920
6177
  msgid "Croatia kuna"
6178
  msgstr ""
6179
 
6180
- #: wpuf-functions.php:1921
6181
  msgid "Hungarian Forint"
6182
  msgstr ""
6183
 
6184
- #: wpuf-functions.php:1922
6185
  msgid "Icelandic krona"
6186
  msgstr ""
6187
 
6188
- #: wpuf-functions.php:1923
6189
  msgid "Indonesia Rupiah"
6190
  msgstr ""
6191
 
6192
- #: wpuf-functions.php:1924
6193
  msgid "Indian Rupee"
6194
  msgstr ""
6195
 
6196
- #: wpuf-functions.php:1925
6197
  msgid "Nepali Rupee"
6198
  msgstr ""
6199
 
6200
- #: wpuf-functions.php:1926
6201
  msgid "Israeli Shekel"
6202
  msgstr ""
6203
 
6204
- #: wpuf-functions.php:1927
6205
  msgid "Japanese Yen"
6206
  msgstr ""
6207
 
6208
- #: wpuf-functions.php:1928
6209
  msgid "Lao Kip"
6210
  msgstr ""
6211
 
6212
- #: wpuf-functions.php:1929
6213
  msgid "South Korean Won"
6214
  msgstr ""
6215
 
6216
- #: wpuf-functions.php:1930
6217
  msgid "Malaysian Ringgits"
6218
  msgstr ""
6219
 
6220
- #: wpuf-functions.php:1931
6221
  msgid "Mexican Peso"
6222
  msgstr ""
6223
 
6224
- #: wpuf-functions.php:1932
6225
  msgid "Nigerian Naira"
6226
  msgstr ""
6227
 
6228
- #: wpuf-functions.php:1933
6229
  msgid "Norwegian Krone"
6230
  msgstr ""
6231
 
6232
- #: wpuf-functions.php:1934
6233
  msgid "New Zealand Dollar"
6234
  msgstr ""
6235
 
6236
- #: wpuf-functions.php:1935
6237
  msgid "Omani Rial"
6238
  msgstr ""
6239
 
6240
- #: wpuf-functions.php:1936
6241
  msgid "Iranian Rial"
6242
  msgstr ""
6243
 
6244
- #: wpuf-functions.php:1937
6245
  msgid "Pakistani Rupee"
6246
  msgstr ""
6247
 
6248
- #: wpuf-functions.php:1938
6249
  msgid "Paraguayan Guaraní"
6250
  msgstr ""
6251
 
6252
- #: wpuf-functions.php:1939
6253
  msgid "Philippine Pesos"
6254
  msgstr ""
6255
 
6256
- #: wpuf-functions.php:1940
6257
  msgid "Polish Zloty"
6258
  msgstr ""
6259
 
6260
- #: wpuf-functions.php:1941
6261
  msgid "Pounds Sterling"
6262
  msgstr ""
6263
 
6264
- #: wpuf-functions.php:1942
6265
  msgid "Romanian Leu"
6266
  msgstr ""
6267
 
6268
- #: wpuf-functions.php:1943
6269
  msgid "Russian Ruble"
6270
  msgstr ""
6271
 
6272
- #: wpuf-functions.php:1944
6273
  msgid "Saudi Riyal"
6274
  msgstr ""
6275
 
6276
- #: wpuf-functions.php:1945
6277
  msgid "Singapore Dollar"
6278
  msgstr ""
6279
 
6280
- #: wpuf-functions.php:1946
6281
  msgid "South African rand"
6282
  msgstr ""
6283
 
6284
- #: wpuf-functions.php:1947
6285
  msgid "Swedish Krona"
6286
  msgstr ""
6287
 
6288
- #: wpuf-functions.php:1948
6289
  msgid "Swiss Franc"
6290
  msgstr ""
6291
 
6292
- #: wpuf-functions.php:1949
6293
  msgid "Taiwan New Dollars"
6294
  msgstr ""
6295
 
6296
- #: wpuf-functions.php:1950
6297
  msgid "Thai Baht"
6298
  msgstr ""
6299
 
6300
- #: wpuf-functions.php:1951
6301
  msgid "Turkish Lira"
6302
  msgstr ""
6303
 
6304
- #: wpuf-functions.php:1952
6305
  msgid "US Dollar"
6306
  msgstr ""
6307
 
6308
- #: wpuf-functions.php:1953
6309
  msgid "Vietnamese Dong"
6310
  msgstr ""
6311
 
6312
- #: wpuf-functions.php:1954
6313
  msgid "Egyptian Pound"
6314
  msgstr ""
6315
 
6316
- #: wpuf-functions.php:2827
6317
  msgid "None"
6318
  msgstr ""
6319
 
@@ -6440,7 +6431,7 @@ msgctxt "enhanced select"
6440
  msgid "Searching&hellip;"
6441
  msgstr ""
6442
 
6443
- #: wpuf-functions.php:1288
6444
  msgctxt "tag delimiter"
6445
  msgid ","
6446
  msgstr ""
2
  # This file is distributed under the GPL2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WP User Frontend 3.1.17\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
+ "POT-Creation-Date: 2020-01-31 06:48:49+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
142
 
143
  #: admin/class-admin-subscription.php:226
144
  #: admin/class-admin-subscription.php:596 class/frontend-account.php:249
145
+ #: class/subscription.php:879 includes/class-user-subscription.php:305
146
  #: templates/subscriptions/pack-details.php:24
147
  msgid "Free"
148
  msgstr ""
306
 
307
  #: admin/class-admin-subscription.php:774
308
  #: admin/form-builder/class-wpuf-admin-form-builder.php:264
309
+ #: class/payment.php:205 class/subscription.php:783
310
  #: includes/class-list-table-subscribers.php:138 lib/appsero/Insights.php:764
311
  #: templates/dashboard/subscription.php:59
312
  msgid "Cancel"
342
 
343
  #: admin/class-tools.php:44 admin/class-tools.php:111
344
  #: admin/post-forms-list-table.php:43 class/transactions-list-table.php:87
345
+ #: includes/class-list-table-subscribers.php:136 wpuf-functions.php:2830
346
  msgid "All"
347
  msgstr ""
348
 
2151
  msgstr ""
2152
 
2153
  #: admin/installer.php:84 admin/settings-options.php:24
2154
+ #: includes/free/admin/shortcode-button.php:79 wpuf-functions.php:1779
2155
  msgid "Dashboard"
2156
  msgstr ""
2157
 
2159
  msgid "Account"
2160
  msgstr ""
2161
 
2162
+ #: admin/installer.php:89 includes/class-login-widget.php:248
2163
  #: includes/free/admin/shortcode-button.php:91
2164
  msgid "Login"
2165
  msgstr ""
2167
  #: admin/installer.php:95 class/subscription.php:377 class/subscription.php:397
2168
  #: class/subscription.php:398 class/subscription.php:399
2169
  #: includes/free/admin/shortcode-button.php:99
2170
+ #: templates/dashboard/dashboard.php:19 wpuf-functions.php:1782
2171
  msgid "Subscription"
2172
  msgstr ""
2173
 
2574
  msgid "WP User Frontend Pro is the most powerful solution for your frontend needs."
2575
  msgstr ""
2576
 
 
 
 
 
 
 
 
 
 
 
 
 
2577
  #: admin/promotion.php:191
2578
  msgid "Sure! I'd love to!"
2579
  msgstr ""
3330
  #: admin/template.php:136 admin/template.php:199
3331
  #: includes/fields/class-abstract-fields.php:506
3332
  #: includes/fields/class-abstract-fields.php:562
 
3333
  msgid "Numebr of words the author to be restricted in"
3334
  msgstr ""
3335
 
3385
  msgstr ""
3386
 
3387
  #: admin/template.php:520 admin/template.php:578 admin/template.php:656
3388
+ #: class/upload.php:197 includes/fields/class-field-recaptcha.php:147
3389
  #: includes/fields/class-field-sectionbreak.php:54
3390
  #: templates/dashboard/posts.php:79 templates/dashboard.php:94
3391
+ #: wpuf-functions.php:840
3392
  msgid "Title"
3393
  msgstr ""
3394
 
3404
  msgid "Enter the meta value"
3405
  msgstr ""
3406
 
3407
+ #: admin/template.php:583 class/upload.php:199
3408
+ #: includes/fields/class-field-sectionbreak.php:62 wpuf-functions.php:848
3409
  msgid "Description"
3410
  msgstr ""
3411
 
3599
  msgstr ""
3600
 
3601
  #: class/payment.php:138 includes/class-customizer.php:56
3602
+ #: wpuf-functions.php:1783
3603
  msgid "Billing Address"
3604
  msgstr ""
3605
 
3774
  msgstr ""
3775
 
3776
  #: class/render-form.php:1341 includes/free/edit-profile.php:209
3777
+ #: templates/dashboard/edit-profile.php:71
3778
  msgid "Strength indicator"
3779
  msgstr ""
3780
 
3781
  #: class/render-form.php:1403 includes/fields/class-field-post-taxonomy.php:119
3782
+ #: wpuf-functions.php:1566
3783
  msgid "-- Select --"
3784
  msgstr ""
3785
 
3829
  msgid "Parent Subscription"
3830
  msgstr ""
3831
 
3832
+ #: class/subscription.php:747
3833
  msgid "Payment is complete"
3834
  msgstr ""
3835
 
3836
+ #: class/subscription.php:747
3837
  msgid "Congratulations, your payment has been completed!"
3838
  msgstr ""
3839
 
3840
+ #: class/subscription.php:751 class/subscription.php:755
3841
  msgid "Please buy a subscription pack to post"
3842
  msgstr ""
3843
 
3844
+ #: class/subscription.php:773
3845
  msgid "<p><i>You have a subscription pack activated. </i></p>"
3846
  msgstr ""
3847
 
3848
+ #: class/subscription.php:774
3849
  msgid "<p><i>Pack name: %s </i></p>"
3850
  msgstr ""
3851
 
3852
+ #: class/subscription.php:776
3853
  msgid "To cancel the pack, press the following cancel button"
3854
  msgstr ""
3855
 
3856
+ #: class/subscription.php:819
3857
  msgid "Day"
3858
  msgid_plural "Days"
3859
  msgstr[0] ""
3860
  msgstr[1] ""
3861
 
3862
+ #: class/subscription.php:820
3863
  msgid "Week"
3864
  msgid_plural "Weeks"
3865
  msgstr[0] ""
3866
  msgstr[1] ""
3867
 
3868
+ #: class/subscription.php:821
3869
  msgid "Month"
3870
  msgid_plural "Months"
3871
  msgstr[0] ""
3872
  msgstr[1] ""
3873
 
3874
+ #: class/subscription.php:822
3875
  msgid "Year"
3876
  msgid_plural "Years"
3877
  msgstr[0] ""
3878
  msgstr[1] ""
3879
 
3880
+ #: class/subscription.php:854
3881
  msgid "One time payment"
3882
  msgstr ""
3883
 
3884
+ #: class/subscription.php:861
3885
  msgid "Every"
3886
  msgstr ""
3887
 
3888
+ #: class/subscription.php:862
3889
  msgid "for"
3890
  msgstr ""
3891
 
3892
+ #: class/subscription.php:862
3893
  msgid "installments"
3894
  msgstr ""
3895
 
3896
+ #: class/subscription.php:868
3897
  msgid "Trial available for first %s %s"
3898
  msgstr ""
3899
 
3900
+ #: class/subscription.php:872
3901
  msgid "Buy Now"
3902
  msgstr ""
3903
 
3904
+ #: class/subscription.php:876
3905
  msgid "Sign Up"
3906
  msgstr ""
3907
 
3908
+ #: class/subscription.php:940
3909
  msgid "There is a <strong>%s</strong> charge to add a new post."
3910
  msgstr ""
3911
 
3912
+ #: class/subscription.php:956
3913
  msgid ""
3914
  "Your Subscription pack is exhausted. There is a <strong>%s</strong> charge "
3915
  "to add a new post."
3916
  msgstr ""
3917
 
3918
+ #: class/subscription.php:1001
3919
  msgid "You must <a href=\"%s\">purchase a pack</a> before posting"
3920
  msgstr ""
3921
 
3993
  msgid "No transactions found."
3994
  msgstr ""
3995
 
3996
+ #: class/upload.php:198 wpuf-functions.php:844
3997
  msgid "Caption"
3998
  msgstr ""
3999
 
4035
  msgid "Some Required Fields are not filled!"
4036
  msgstr ""
4037
 
4038
+ #: includes/class-billing-address.php:152 includes/class-customizer.php:22
4039
  #: includes/class-customizer.php:66 includes/class-privacy.php:270
4040
  #: templates/dashboard/billing-address.php:89
4041
  msgid "Country"
4042
  msgstr ""
4043
 
4044
+ #: includes/class-billing-address.php:175
4045
  msgid "Choose a country"
4046
  msgstr ""
4047
 
4048
+ #: includes/class-billing-address.php:193 includes/class-customizer.php:23
4049
  #: includes/class-customizer.php:67 templates/dashboard/billing-address.php:74
4050
  msgid "State/Province/Region"
4051
  msgstr ""
4052
 
4053
+ #: includes/class-billing-address.php:207
4054
  msgid "Choose a state"
4055
  msgstr ""
4056
 
4057
+ #: includes/class-billing-address.php:224
4058
  #: templates/dashboard/billing-address.php:53
4059
  msgid "Address Line 1 "
4060
  msgstr ""
4061
 
4062
+ #: includes/class-billing-address.php:232
4063
  #: templates/dashboard/billing-address.php:60
4064
  msgid "Address Line 2 "
4065
  msgstr ""
4066
 
4067
+ #: includes/class-billing-address.php:240 includes/class-customizer.php:26
4068
  #: includes/class-customizer.php:70 includes/class-privacy.php:258
4069
  #: templates/dashboard/billing-address.php:67
4070
  msgid "City"
4071
  msgstr ""
4072
 
4073
+ #: includes/class-billing-address.php:247 includes/class-customizer.php:27
4074
  #: includes/class-customizer.php:71 templates/dashboard/billing-address.php:84
4075
  msgid "Postal Code/ZIP"
4076
  msgstr ""
4077
 
4078
+ #: includes/class-billing-address.php:255
4079
  #: templates/dashboard/billing-address.php:113
4080
  msgid "Update Billing Address"
4081
  msgstr ""
4082
 
4083
+ #: includes/class-billing-address.php:302
4084
  #: templates/dashboard/billing-address.php:35
4085
  msgid "Billing address is updated."
4086
  msgstr ""
4112
 
4113
  #: includes/class-dokan-integration.php:34
4114
  #: includes/class-wc-vendors-integration.php:108
4115
+ #: templates/dashboard/dashboard.php:15 wpuf-functions.php:1780
4116
  msgid "Posts"
4117
  msgstr ""
4118
 
4163
  msgid "Post Limit Exceeded for your purchased subscription pack."
4164
  msgstr ""
4165
 
4166
+ #: includes/class-frontend-form-post.php:49
4167
  msgid "You are not logged in"
4168
  msgstr ""
4169
 
4170
+ #: includes/class-frontend-form-post.php:58
4171
+ #: includes/class-frontend-form-post.php:88
4172
  msgid "Invalid post"
4173
  msgstr ""
4174
 
4175
+ #: includes/class-frontend-form-post.php:65
4176
  msgid "Your edit access for this post has been locked by an administrator."
4177
  msgstr ""
4178
 
4179
+ #: includes/class-frontend-form-post.php:69
4180
  msgid "Your allocated time for editing this post has been expired."
4181
  msgstr ""
4182
 
4183
+ #: includes/class-frontend-form-post.php:77
4184
  msgid "Your post edit access has been locked by an administrator."
4185
  msgstr ""
4186
 
4187
+ #: includes/class-frontend-form-post.php:82
4188
  msgid "Post Editing is disabled"
4189
  msgstr ""
4190
 
4191
+ #: includes/class-frontend-form-post.php:93
4192
  msgid "You are not allowed to edit"
4193
  msgstr ""
4194
 
4195
+ #: includes/class-frontend-form-post.php:104
4196
  msgid "I don't know how to edit this post, I don't have the form ID"
4197
  msgstr ""
4198
 
4199
+ #: includes/class-frontend-form-post.php:116
4200
  msgid "You can't edit a post while in pending mode."
4201
  msgstr ""
4202
 
4203
+ #: includes/class-frontend-form-post.php:494
4204
  msgid "Something went wrong"
4205
  msgstr ""
4206
 
4207
+ #: includes/class-frontend-form-post.php:515
4208
  msgid "Invalid email address."
4209
  msgstr ""
4210
 
4211
+ #: includes/class-frontend-form-post.php:525
4212
  msgid ""
4213
  "You already have an account in our site. Please login to continue.\n"
4214
  "\n"
4217
  "Click 'Cancel' to stay at this page."
4218
  msgstr ""
4219
 
4220
+ #: includes/class-frontend-form-post.php:576
4221
  msgid "You do not have sufficient permissions to access this form."
4222
  msgstr ""
4223
 
4224
+ #: includes/class-frontend-form-post.php:842
4225
  msgid "Email successfully verified. Please Login."
4226
  msgstr ""
4227
 
4228
+ #: includes/class-frontend-form-post.php:949
4229
+ #: includes/class-frontend-form-post.php:955
4230
  msgid ""
4231
  "Thank you for posting on our site. We have sent you an confirmation email. "
4232
  "Please check your inbox!"
4323
  msgid "To reset your password, visit the following address:"
4324
  msgstr ""
4325
 
4326
+ #: includes/class-login-widget.php:154 includes/free/class-login.php:976
4327
  msgid "[%s] Password Reset"
4328
  msgstr ""
4329
 
4333
  "host may have disabled the mail() function."
4334
  msgstr ""
4335
 
4336
+ #: includes/class-login-widget.php:216 includes/class-login-widget.php:252
4337
  #: includes/free/class-login.php:320 includes/free/class-registration.php:120
4338
  #: includes/free/form-element.php:332
4339
  msgid "Register"
4340
  msgstr ""
4341
 
4342
+ #: includes/class-login-widget.php:224
4343
  msgid "Lost your password?"
4344
  msgstr ""
4345
 
4346
+ #: includes/class-login-widget.php:232 templates/lost-pass-form.php:14
4347
  msgid "Username or E-mail:"
4348
  msgstr ""
4349
 
4350
+ #: includes/class-login-widget.php:260
4351
  msgid "Log out"
4352
  msgstr ""
4353
 
4354
+ #: includes/class-login-widget.php:275
4355
  msgid "WPUF Login Widget"
4356
  msgstr ""
4357
 
4358
+ #: includes/class-login-widget.php:276
4359
  msgid "Username or Email Address"
4360
  msgstr ""
4361
 
4362
+ #: includes/class-login-widget.php:277
4363
  msgid ""
4364
  "Please enter your username or email address. You will receive a link to "
4365
  "create a new password via email"
4366
  msgstr ""
4367
 
4368
+ #: includes/class-login-widget.php:278 includes/free/edit-profile.php:102
4369
  #: includes/free/edit-user.php:97 includes/free/edit-user.php:157
4370
  #: templates/registration-form.php:54
4371
  msgid "Username"
4372
  msgstr ""
4373
 
4374
+ #: includes/class-login-widget.php:279 templates/login-form.php:27
4375
  #: templates/registration-form.php:61
4376
  msgid "Password"
4377
  msgstr ""
4378
 
4379
+ #: includes/class-login-widget.php:280 templates/login-form.php:71
4380
  msgid "Remember Me"
4381
  msgstr ""
4382
 
4383
+ #: includes/class-login-widget.php:281 includes/free/class-login.php:316
4384
  #: includes/free/class-login.php:368 templates/login-form.php:75
4385
  msgid "Log In"
4386
  msgstr ""
4387
 
4388
+ #: includes/class-login-widget.php:282 templates/reset-pass-form.php:26
4389
  msgid "Reset Password"
4390
  msgstr ""
4391
 
4392
+ #: includes/class-login-widget.php:285
4393
  msgid "Title:"
4394
  msgstr ""
4395
 
4396
+ #: includes/class-login-widget.php:289
4397
  msgid "Log-in Text:"
4398
  msgstr ""
4399
 
4400
+ #: includes/class-login-widget.php:293
4401
  msgid "Username Label:"
4402
  msgstr ""
4403
 
4404
+ #: includes/class-login-widget.php:297
4405
  msgid "Password Label:"
4406
  msgstr ""
4407
 
4408
+ #: includes/class-login-widget.php:301
4409
  msgid "Remember Me Label:"
4410
  msgstr ""
4411
 
4412
+ #: includes/class-login-widget.php:304
4413
  msgid "Log In Label:"
4414
  msgstr ""
4415
 
4416
+ #: includes/class-login-widget.php:308
4417
  msgid "Password Reset Text:"
4418
  msgstr ""
4419
 
4420
+ #: includes/class-login-widget.php:312
4421
  msgid "Password Reset Label:"
4422
  msgstr ""
4423
 
4888
  msgid "Number of columns in textarea"
4889
  msgstr ""
4890
 
4891
+ #: includes/fields/class-abstract-fields.php:654
4892
+ msgid "Number of words the author to be restricted in"
4893
+ msgstr ""
4894
+
4895
  #: includes/fields/class-field-column.php:70
4896
  msgid "Number of Columns"
4897
  msgstr ""
5255
  msgid "Someone requested that the password be reset for the following account:"
5256
  msgstr ""
5257
 
5258
+ #: includes/free/class-login.php:982
5259
  msgid "The e-mail could not be sent."
5260
  msgstr ""
5261
 
5262
+ #: includes/free/class-login.php:982
5263
  msgid "Possible reason: your host may have disabled the mail() function."
5264
  msgstr ""
5265
 
5355
  "be shown publicly."
5356
  msgstr ""
5357
 
5358
+ #: includes/free/edit-profile.php:194 templates/dashboard/edit-profile.php:55
5359
  msgid "New Password"
5360
  msgstr ""
5361
 
5368
  msgstr ""
5369
 
5370
  #: includes/free/edit-profile.php:233 includes/free/form-element.php:333
5371
+ #: templates/dashboard/edit-profile.php:131
5372
  msgid "Update Profile"
5373
  msgstr ""
5374
 
5850
  msgid "Thanks for being with us."
5851
  msgstr ""
5852
 
5853
+ #: lib/gateway/paypal.php:63
5854
  msgid "Subscription %s at %s"
5855
  msgstr ""
5856
 
5857
+ #: lib/gateway/paypal.php:93
5858
  msgid "PayPal Email"
5859
  msgstr ""
5860
 
5861
+ #: lib/gateway/paypal.php:98
5862
  msgid "PayPal Instruction"
5863
  msgstr ""
5864
 
5865
+ #: lib/gateway/paypal.php:105
5866
  msgid "PayPal API username"
5867
  msgstr ""
5868
 
5869
+ #: lib/gateway/paypal.php:109
5870
  msgid "PayPal API password"
5871
  msgstr ""
5872
 
5873
+ #: lib/gateway/paypal.php:113
5874
  msgid "PayPal API signature"
5875
  msgstr ""
5876
 
5902
  msgid "First Name "
5903
  msgstr ""
5904
 
5905
+ #: templates/dashboard/edit-profile.php:24
5906
  msgid "Last Name "
5907
  msgstr ""
5908
 
5909
+ #: templates/dashboard/edit-profile.php:34
5910
  msgid "Email Address "
5911
  msgstr ""
5912
 
5913
+ #: templates/dashboard/edit-profile.php:44
5914
  msgid "Current Password"
5915
  msgstr ""
5916
 
5917
+ #: templates/dashboard/edit-profile.php:49
5918
  msgid "Leave this field empty to keep your password unchanged."
5919
  msgstr ""
5920
 
5921
+ #: templates/dashboard/edit-profile.php:65
5922
  msgid "Confirm New Password"
5923
  msgstr ""
5924
 
6056
  msgid "Private"
6057
  msgstr ""
6058
 
6059
+ #: wpuf-functions.php:212 wpuf-functions.php:1798
6060
  msgid "-- select --"
6061
  msgstr ""
6062
 
6063
+ #: wpuf-functions.php:455
6064
  msgid "Images"
6065
  msgstr ""
6066
 
6067
+ #: wpuf-functions.php:456
6068
  msgid "Audio"
6069
  msgstr ""
6070
 
6071
+ #: wpuf-functions.php:457
6072
  msgid "Videos"
6073
  msgstr ""
6074
 
6075
+ #: wpuf-functions.php:458
6076
  msgid "PDF"
6077
  msgstr ""
6078
 
6079
+ #: wpuf-functions.php:459
6080
  msgid "Office Documents"
6081
  msgstr ""
6082
 
6083
+ #: wpuf-functions.php:460
6084
  msgid "Zip Archives"
6085
  msgstr ""
6086
 
6087
+ #: wpuf-functions.php:461
6088
  msgid "Executable Files"
6089
  msgstr ""
6090
 
6091
+ #: wpuf-functions.php:462
6092
  msgid "CSV"
6093
  msgstr ""
6094
 
6095
+ #: wpuf-functions.php:867
6096
  msgid "Directions »"
6097
  msgstr ""
6098
 
6099
+ #: wpuf-functions.php:1781
6100
  msgid "Edit Profile"
6101
  msgstr ""
6102
 
6103
+ #: wpuf-functions.php:1908
6104
  msgid "United Arab Emirates Dirham"
6105
  msgstr ""
6106
 
6107
+ #: wpuf-functions.php:1909
6108
  msgid "Australian Dollars"
6109
  msgstr ""
6110
 
6111
+ #: wpuf-functions.php:1910
6112
  msgid "Argentine Peso"
6113
  msgstr ""
6114
 
6115
+ #: wpuf-functions.php:1911
6116
  msgid "Bangladeshi Taka"
6117
  msgstr ""
6118
 
6119
+ #: wpuf-functions.php:1912
6120
  msgid "Brazilian Real"
6121
  msgstr ""
6122
 
6123
+ #: wpuf-functions.php:1913
6124
  msgid "Bulgarian Lev"
6125
  msgstr ""
6126
 
6127
+ #: wpuf-functions.php:1914
6128
  msgid "Canadian Dollars"
6129
  msgstr ""
6130
 
6131
+ #: wpuf-functions.php:1915
6132
  msgid "Chilean Peso"
6133
  msgstr ""
6134
 
6135
+ #: wpuf-functions.php:1916
6136
  msgid "Chinese Yuan"
6137
  msgstr ""
6138
 
6139
+ #: wpuf-functions.php:1917
6140
  msgid "Colombian Peso"
6141
  msgstr ""
6142
 
6143
+ #: wpuf-functions.php:1918
6144
  msgid "Czech Koruna"
6145
  msgstr ""
6146
 
6147
+ #: wpuf-functions.php:1919
6148
  msgid "Danish Krone"
6149
  msgstr ""
6150
 
6151
+ #: wpuf-functions.php:1920
6152
  msgid "Dominican Peso"
6153
  msgstr ""
6154
 
6155
+ #: wpuf-functions.php:1921
6156
  msgid "Algerian Dinar"
6157
  msgstr ""
6158
 
6159
+ #: wpuf-functions.php:1922
6160
  msgid "Euros"
6161
  msgstr ""
6162
 
6163
+ #: wpuf-functions.php:1923
6164
  msgid "Hong Kong Dollar"
6165
  msgstr ""
6166
 
6167
+ #: wpuf-functions.php:1924
6168
  msgid "Croatia kuna"
6169
  msgstr ""
6170
 
6171
+ #: wpuf-functions.php:1925
6172
  msgid "Hungarian Forint"
6173
  msgstr ""
6174
 
6175
+ #: wpuf-functions.php:1926
6176
  msgid "Icelandic krona"
6177
  msgstr ""
6178
 
6179
+ #: wpuf-functions.php:1927
6180
  msgid "Indonesia Rupiah"
6181
  msgstr ""
6182
 
6183
+ #: wpuf-functions.php:1928
6184
  msgid "Indian Rupee"
6185
  msgstr ""
6186
 
6187
+ #: wpuf-functions.php:1929
6188
  msgid "Nepali Rupee"
6189
  msgstr ""
6190
 
6191
+ #: wpuf-functions.php:1930
6192
  msgid "Israeli Shekel"
6193
  msgstr ""
6194
 
6195
+ #: wpuf-functions.php:1931
6196
  msgid "Japanese Yen"
6197
  msgstr ""
6198
 
6199
+ #: wpuf-functions.php:1932
6200
  msgid "Lao Kip"
6201
  msgstr ""
6202
 
6203
+ #: wpuf-functions.php:1933
6204
  msgid "South Korean Won"
6205
  msgstr ""
6206
 
6207
+ #: wpuf-functions.php:1934
6208
  msgid "Malaysian Ringgits"
6209
  msgstr ""
6210
 
6211
+ #: wpuf-functions.php:1935
6212
  msgid "Mexican Peso"
6213
  msgstr ""
6214
 
6215
+ #: wpuf-functions.php:1936
6216
  msgid "Nigerian Naira"
6217
  msgstr ""
6218
 
6219
+ #: wpuf-functions.php:1937
6220
  msgid "Norwegian Krone"
6221
  msgstr ""
6222
 
6223
+ #: wpuf-functions.php:1938
6224
  msgid "New Zealand Dollar"
6225
  msgstr ""
6226
 
6227
+ #: wpuf-functions.php:1939
6228
  msgid "Omani Rial"
6229
  msgstr ""
6230
 
6231
+ #: wpuf-functions.php:1940
6232
  msgid "Iranian Rial"
6233
  msgstr ""
6234
 
6235
+ #: wpuf-functions.php:1941
6236
  msgid "Pakistani Rupee"
6237
  msgstr ""
6238
 
6239
+ #: wpuf-functions.php:1942
6240
  msgid "Paraguayan Guaraní"
6241
  msgstr ""
6242
 
6243
+ #: wpuf-functions.php:1943
6244
  msgid "Philippine Pesos"
6245
  msgstr ""
6246
 
6247
+ #: wpuf-functions.php:1944
6248
  msgid "Polish Zloty"
6249
  msgstr ""
6250
 
6251
+ #: wpuf-functions.php:1945
6252
  msgid "Pounds Sterling"
6253
  msgstr ""
6254
 
6255
+ #: wpuf-functions.php:1946
6256
  msgid "Romanian Leu"
6257
  msgstr ""
6258
 
6259
+ #: wpuf-functions.php:1947
6260
  msgid "Russian Ruble"
6261
  msgstr ""
6262
 
6263
+ #: wpuf-functions.php:1948
6264
  msgid "Saudi Riyal"
6265
  msgstr ""
6266
 
6267
+ #: wpuf-functions.php:1949
6268
  msgid "Singapore Dollar"
6269
  msgstr ""
6270
 
6271
+ #: wpuf-functions.php:1950
6272
  msgid "South African rand"
6273
  msgstr ""
6274
 
6275
+ #: wpuf-functions.php:1951
6276
  msgid "Swedish Krona"
6277
  msgstr ""
6278
 
6279
+ #: wpuf-functions.php:1952
6280
  msgid "Swiss Franc"
6281
  msgstr ""
6282
 
6283
+ #: wpuf-functions.php:1953
6284
  msgid "Taiwan New Dollars"
6285
  msgstr ""
6286
 
6287
+ #: wpuf-functions.php:1954
6288
  msgid "Thai Baht"
6289
  msgstr ""
6290
 
6291
+ #: wpuf-functions.php:1955
6292
  msgid "Turkish Lira"
6293
  msgstr ""
6294
 
6295
+ #: wpuf-functions.php:1956
6296
  msgid "US Dollar"
6297
  msgstr ""
6298
 
6299
+ #: wpuf-functions.php:1957
6300
  msgid "Vietnamese Dong"
6301
  msgstr ""
6302
 
6303
+ #: wpuf-functions.php:1958
6304
  msgid "Egyptian Pound"
6305
  msgstr ""
6306
 
6307
+ #: wpuf-functions.php:2831
6308
  msgid "None"
6309
  msgstr ""
6310
 
6431
  msgid "Searching&hellip;"
6432
  msgstr ""
6433
 
6434
+ #: wpuf-functions.php:1291
6435
  msgctxt "tag delimiter"
6436
  msgid ","
6437
  msgstr ""
lib/gateway/paypal.php CHANGED
@@ -23,6 +23,7 @@ class WPUF_Paypal {
23
  add_action( 'wpuf_paypal_ipn_success', [ $this, 'paypal_success' ] );
24
  add_action( 'wpuf_cancel_payment_paypal', [ $this, 'handle_cancel_subscription' ] );
25
  add_action( 'wpuf_cancel_subscription_paypal', [ $this, 'handle_cancel_subscription' ] );
 
26
  }
27
 
28
  public function subscription_cancel( $user_id ) {
@@ -452,4 +453,34 @@ class WPUF_Paypal {
452
 
453
  return false;
454
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
455
  }
23
  add_action( 'wpuf_paypal_ipn_success', [ $this, 'paypal_success' ] );
24
  add_action( 'wpuf_cancel_payment_paypal', [ $this, 'handle_cancel_subscription' ] );
25
  add_action( 'wpuf_cancel_subscription_paypal', [ $this, 'handle_cancel_subscription' ] );
26
+ add_action( 'wpuf_paypal_ipn_success', [ $this, 'update_paypal_subscr_payment' ] );
27
  }
28
 
29
  public function subscription_cancel( $user_id ) {
453
 
454
  return false;
455
  }
456
+
457
+ /**
458
+ * Update users subscription
459
+ *
460
+ * Updates the pack when new recurring payment IPN notification is being
461
+ * sent from PayPal.
462
+ *
463
+ * @return void
464
+ */
465
+ public function update_paypal_subscr_payment() {
466
+ $txn_type = isset( $_POST['txn_type'] ) ? sanitize_text_field( wp_unslash( $_POST['txn_type'] ) ) : '';
467
+ $payment_status = isset( $_POST['payment_status'] ) ? sanitize_text_field( wp_unslash( $_POST['payment_status'] ) ) : '';
468
+
469
+ $custom = isset( $_POST['custom'] ) ? sanitize_text_field( wp_unslash( $_POST['custom'] ) ) : '';
470
+
471
+ $pack_id = $_POST['item_number'];
472
+
473
+ if ( $txn_type != 'subscr_payment' ) {
474
+ return;
475
+ }
476
+
477
+ if ( strtolower( $payment_status ) != 'completed' ) {
478
+ return;
479
+ }
480
+
481
+ $pack = $this->get_subscription( $pack_id );
482
+ $payer = json_decode( stripcslashes( $custom ) );
483
+
484
+ $this->update_user_subscription_meta( $payer->payer_id, $pack );
485
+ }
486
  }
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: tareq1988, nizamuddinbabu, wedevs
3
  Donate link: https://tareq.co/donate/
4
  Tags: Forms, registration, profile-builder, login, membership
5
  Requires at least: 4.0
6
- Tested up to: 5.3
7
  Requires PHP: 5.6
8
- Stable tag: 3.1.16
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -264,6 +264,9 @@ redirected to the edit page with that post id. Then you'll see the edit post for
264
 
265
  == Changelog ==
266
 
 
 
 
267
  = v3.1.16 (17 January, 2020) =
268
  * **Fix:** Photo insert option in content editor
269
  * **Fix:** Subscription page is not showing the content/package description as formatted content
3
  Donate link: https://tareq.co/donate/
4
  Tags: Forms, registration, profile-builder, login, membership
5
  Requires at least: 4.0
6
+ Tested up to: 5.3.2
7
  Requires PHP: 5.6
8
+ Stable tag: 3.1.17
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
264
 
265
  == Changelog ==
266
 
267
+ = v3.1.17 (31 January, 2020) =
268
+ * **Fix:** some regressions after phpcs fixes
269
+
270
  = v3.1.16 (17 January, 2020) =
271
  * **Fix:** Photo insert option in content editor
272
  * **Fix:** Subscription page is not showing the content/package description as formatted content
templates/dashboard/edit-profile.php CHANGED
@@ -10,7 +10,7 @@ ob_start();
10
  <div style="display: none;" class="wpuf-success"><?php esc_html_e( 'Profile updated successfully!', 'wp-user-frontend' ); ?></div>
11
  <div style="display: none;" class="wpuf-error"><?php esc_html_e( 'Something went wrong!', 'wp-user-frontend' ); ?></div>
12
  <ul class="wpuf-form form-label-above">
13
- <li class="wpuf-el form-row form-row-first">
14
  <div class="wpuf-label" >
15
  <label for="first_name"><?php esc_html_e( 'First Name ', 'wp-user-frontend' ); ?><span class="required">*</span></label>
16
  </div>
@@ -18,7 +18,8 @@ ob_start();
18
  <input type="text" class="input-text" name="first_name" id="first_name" value="<?php echo esc_attr( $current_user->first_name ); ?>" required>
19
  </div>
20
  </li>
21
- <li class="wpuf-el form-row-last">
 
22
  <div class="wpuf-label" >
23
  <label for="last_name"><?php esc_html_e( 'Last Name ', 'wp-user-frontend' ); ?><span class="required">*</span></label>
24
  </div>
@@ -134,50 +135,6 @@ ob_start();
134
  </form>
135
 
136
  <?php
137
- $output = apply_filters( 'wpuf_account_edit_profile_content', ob_get_clean() );
138
- $allowed_html = apply_filters( 'wpuf_account_edit_profile_content_allowed_html', [
139
- 'form' => [
140
- 'class' => [],
141
- 'action' => [],
142
- 'method' => [],
143
- ],
144
- 'div' => [
145
- 'style' => [],
146
- 'class' => []
147
- ],
148
- 'ul' => [
149
- 'class' => []
150
- ],
151
- 'li' => [
152
- 'class' => []
153
- ],
154
- 'input' => [
155
- 'type' => [],
156
- 'class' => [],
157
- 'name' => [],
158
- 'id' => [],
159
- 'value' => [],
160
- 'required' => []
161
- ],
162
- 'button' => [
163
- 'type' => [],
164
- 'name' => [],
165
- 'id' => [],
166
- 'class' => []
167
- ],
168
- 'label' => [
169
- 'for' => [],
170
- 'class' => []
171
- ],
172
- 'span' => [
173
- 'class' => [],
174
- 'style' => [],
175
- 'id' => []
176
- ],
177
- 'script' => [
178
- 'src' => [],
179
- ]
180
- ]);
181
-
182
- echo wp_kses( $output, $allowed_html );
183
  ?>
10
  <div style="display: none;" class="wpuf-success"><?php esc_html_e( 'Profile updated successfully!', 'wp-user-frontend' ); ?></div>
11
  <div style="display: none;" class="wpuf-error"><?php esc_html_e( 'Something went wrong!', 'wp-user-frontend' ); ?></div>
12
  <ul class="wpuf-form form-label-above">
13
+ <li class="wpuf-el form-row form-row">
14
  <div class="wpuf-label" >
15
  <label for="first_name"><?php esc_html_e( 'First Name ', 'wp-user-frontend' ); ?><span class="required">*</span></label>
16
  </div>
18
  <input type="text" class="input-text" name="first_name" id="first_name" value="<?php echo esc_attr( $current_user->first_name ); ?>" required>
19
  </div>
20
  </li>
21
+ <div class="clear"></div>
22
+ <li class="wpuf-el form-row">
23
  <div class="wpuf-label" >
24
  <label for="last_name"><?php esc_html_e( 'Last Name ', 'wp-user-frontend' ); ?><span class="required">*</span></label>
25
  </div>
135
  </form>
136
 
137
  <?php
138
+ $output = apply_filters( 'wpuf_account_edit_profile_content', ob_get_clean() );
139
+ echo $output; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  ?>
templates/reset-pass-form.php CHANGED
@@ -1,34 +1,34 @@
1
- <?php
2
- /*
3
- If you would like to edit this file, copy it to your current theme's directory and edit it there.
4
- WPUF will always look in your theme's directory first, before using this default template.
5
- */
6
- ?>
7
- <div class="login" id="wpuf-login-form">
8
-
9
- <?php WPUF_Simple_Login::init()->show_errors(); ?>
10
- <?php WPUF_Simple_Login::init()->show_messages(); ?>
11
-
12
- <form name="resetpasswordform" id="resetpasswordform" action="" method="post">
13
- <p>
14
- <label for="wpuf-pass1"><?php esc_html_e( 'New password', 'wp-user-frontend' ); ?></label>
15
- <input autocomplete="off" name="pass1" id="wpuf-pass1" class="input" size="20" value="" type="password" autocomplete="off" />
16
- </p>
17
-
18
- <p>
19
- <label for="wpuf-pass2"><?php esc_html_e( 'Confirm new password', 'wp-user-frontend' ); ?></label>
20
- <input autocomplete="off" name="pass2" id="wpuf-pass2" class="input" size="20" value="" type="password" autocomplete="off" />
21
- </p>
22
-
23
- <?php do_action( 'resetpassword_form' ); ?>
24
-
25
- <p class="submit">
26
- <input type="submit" name="wp-submit" id="wp-submit" value="<?php esc_attr_e( 'Reset Password', 'wp-user-frontend' ); ?>" />
27
- <input type="hidden" name="key" value="<?php echo esc_attr( WPUF_Simple_Login::get_posted_value( 'key' ) ); ?>" />
28
- <input type="hidden" name="login" id="user_login" value="<?php echo esc_attr( WPUF_Simple_Login::get_posted_value( 'login' ) ); ?>" />
29
- <input type="hidden" name="wpuf_reset_password" value="true" />
30
- </p>
31
-
32
- <?php wp_nonce_field( 'wpuf_reset_pass' ); ?>
33
- </form>
34
- </div>
1
+ <?php
2
+ /*
3
+ If you would like to edit this file, copy it to your current theme's directory and edit it there.
4
+ WPUF will always look in your theme's directory first, before using this default template.
5
+ */
6
+ ?>
7
+ <div class="login" id="wpuf-login-form">
8
+
9
+ <?php WPUF_Simple_Login::init()->show_errors(); ?>
10
+ <?php WPUF_Simple_Login::init()->show_messages(); ?>
11
+
12
+ <form name="resetpasswordform" id="resetpasswordform" action="" method="post">
13
+ <p>
14
+ <label for="wpuf-pass1"><?php esc_html_e( 'New password', 'wp-user-frontend' ); ?></label>
15
+ <input autocomplete="off" name="pass1" id="wpuf-pass1" class="input" size="20" value="" type="password" autocomplete="off" />
16
+ </p>
17
+
18
+ <p>
19
+ <label for="wpuf-pass2"><?php esc_html_e( 'Confirm new password', 'wp-user-frontend' ); ?></label>
20
+ <input autocomplete="off" name="pass2" id="wpuf-pass2" class="input" size="20" value="" type="password" autocomplete="off" />
21
+ </p>
22
+
23
+ <?php do_action( 'resetpassword_form' ); ?>
24
+
25
+ <p class="submit">
26
+ <input type="submit" name="wp-submit" id="wp-submit" value="<?php esc_attr_e( 'Reset Password', 'wp-user-frontend' ); ?>" />
27
+ <input type="hidden" name="key" value="<?php echo esc_attr( WPUF_Simple_Login::get_posted_value( 'key' ) ); ?>" />
28
+ <input type="hidden" name="login" id="user_login" value="<?php echo esc_attr( WPUF_Simple_Login::get_posted_value( 'login' ) ); ?>" />
29
+ <input type="hidden" name="wpuf_reset_password" value="true" />
30
+ </p>
31
+
32
+ <?php wp_nonce_field( 'wpuf_reset_pass' ); ?>
33
+ </form>
34
+ </div>
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInita0c7397a05fd573f204a5ee4ef5b2ba6::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit5aa1a47362a80993c5f3f9a878859190::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInita0c7397a05fd573f204a5ee4ef5b2ba6
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInita0c7397a05fd573f204a5ee4ef5b2ba6
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInita0c7397a05fd573f204a5ee4ef5b2ba6', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInita0c7397a05fd573f204a5ee4ef5b2ba6', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInita0c7397a05fd573f204a5ee4ef5b2ba6::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit5aa1a47362a80993c5f3f9a878859190
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit5aa1a47362a80993c5f3f9a878859190', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit5aa1a47362a80993c5f3f9a878859190', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit5aa1a47362a80993c5f3f9a878859190::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInita0c7397a05fd573f204a5ee4ef5b2ba6
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
@@ -121,9 +121,9 @@ class ComposerStaticInita0c7397a05fd573f204a5ee4ef5b2ba6
121
  public static function getInitializer(ClassLoader $loader)
122
  {
123
  return \Closure::bind(function () use ($loader) {
124
- $loader->prefixLengthsPsr4 = ComposerStaticInita0c7397a05fd573f204a5ee4ef5b2ba6::$prefixLengthsPsr4;
125
- $loader->prefixDirsPsr4 = ComposerStaticInita0c7397a05fd573f204a5ee4ef5b2ba6::$prefixDirsPsr4;
126
- $loader->classMap = ComposerStaticInita0c7397a05fd573f204a5ee4ef5b2ba6::$classMap;
127
 
128
  }, null, ClassLoader::class);
129
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit5aa1a47362a80993c5f3f9a878859190
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
121
  public static function getInitializer(ClassLoader $loader)
122
  {
123
  return \Closure::bind(function () use ($loader) {
124
+ $loader->prefixLengthsPsr4 = ComposerStaticInit5aa1a47362a80993c5f3f9a878859190::$prefixLengthsPsr4;
125
+ $loader->prefixDirsPsr4 = ComposerStaticInit5aa1a47362a80993c5f3f9a878859190::$prefixDirsPsr4;
126
+ $loader->classMap = ComposerStaticInit5aa1a47362a80993c5f3f9a878859190::$classMap;
127
 
128
  }, null, ClassLoader::class);
129
  }
wpuf-functions.php CHANGED
@@ -419,6 +419,9 @@ function wpuf_category_checklist( $post_id = 0, $selected_cats = false, $attr =
419
  'value' =>[],
420
  'name' => [],
421
  'id' => [],
 
 
 
422
  ]
423
  ] );
424
  echo wp_kses_post( '</ul>' );
@@ -730,7 +733,7 @@ function wpuf_show_custom_fields( $content ) {
730
  if ( isset( $attr['wpuf_cond']['condition_status'] ) && $attr['wpuf_cond']['condition_status'] == 'yes' ) {
731
  foreach ( $attr['wpuf_cond']['cond_field'] as $field_key => $cond_field_name ) {
732
 
733
- //check if the condintal field is a taxonomuy
734
  if ( taxonomy_exists( $cond_field_name ) ) {
735
  $post_terms = wp_get_post_terms( $post->ID, $cond_field_name, true );
736
  $cond_field_value = [];
@@ -740,7 +743,7 @@ function wpuf_show_custom_fields( $content ) {
740
  $cond_field_value[] = $term_array->term_id;
741
  }
742
  }
743
- //$cond_field_value = isset($post_terms[0]) ? $post_terms[0]->term_id : '';
744
  } else {
745
  $cond_field_value = get_post_meta( $post->ID, $cond_field_name, 'true' );
746
  }
@@ -1513,11 +1516,12 @@ function wpuf_get_child_cats() {
1513
  $nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_key( wp_unslash( $_REQUEST['_wpnonce'] ) ) : '';
1514
 
1515
  $parentCat = isset( $_POST['catID'] ) ? sanitize_text_field( wp_unslash( $_POST['catID'] ) ) : '';
1516
- $field_attr = isset( $_POST['field_attr'] ) ? sanitize_text_field( wp_unslash( $_POST['field_attr'] ) ) : '';
1517
 
1518
  if ( isset( $nonce ) && ! wp_verify_nonce( $nonce, 'wpuf_nonce' ) ) {
1519
- return;
1520
  }
 
1521
 
1522
 
1523
  $taxonomy = $field_attr['name'];
@@ -1526,7 +1530,7 @@ function wpuf_get_child_cats() {
1526
  $result = '';
1527
 
1528
  if ( $parentCat < 1 ) {
1529
- die( esc_html( $result ) );
1530
  }
1531
 
1532
  if ( $terms = get_categories( 'taxonomy=' . $taxonomy . '&child_of=' . $parentCat . '&hide_empty=0' ) ) {
@@ -1539,11 +1543,11 @@ function wpuf_get_child_cats() {
1539
  }
1540
  // $result .= WPUF_Render_Form::init()->taxnomy_select( '', $field_attr );
1541
  $result .= taxnomy_select( '', $field_attr );
 
1542
  } else {
1543
  die( '' );
1544
  }
1545
-
1546
- die( esc_html( $result ) );
1547
  }
1548
 
1549
  function taxnomy_select( $terms, $attr ) {
@@ -1579,7 +1583,7 @@ function taxnomy_select( $terms, $attr ) {
1579
 
1580
  $select = wp_dropdown_categories( $tax_args );
1581
 
1582
- echo wp_kses_post( str_replace( '<select', '<select ' . $required, $select ) );
1583
  $attr = [
1584
  'required' => $attr['required'],
1585
  'name' => $attr['name'],
@@ -1592,7 +1596,7 @@ function taxnomy_select( $terms, $attr ) {
1592
  //'term_id' => $selected
1593
  ];
1594
  $attr = apply_filters( 'wpuf_taxonomy_checklist_args', $attr ); ?>
1595
- <span data-taxonomy=<?php echo esc_attr( json_encode( $attr ) ); ?>></span>
1596
  <?php
1597
  }
1598
 
@@ -3027,7 +3031,7 @@ function wpuf_get_terms( $taxonomy = 'category' ) {
3027
  * @return void
3028
  */
3029
  function wpuf_ajax_get_states_field() {
3030
- $nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_key( wp_unslash( $_REQUEST['_wpnonce'] ) ) : '';
3031
 
3032
  if ( isset( $nonce ) && ! wp_verify_nonce( $nonce, 'wpuf-ajax-address' ) ) {
3033
  return ;
@@ -3054,12 +3058,11 @@ function wpuf_ajax_get_states_field() {
3054
  $response = 'nostates';
3055
  }
3056
 
3057
- echo esc_html( $response );
3058
-
3059
- wp_die();
3060
  }
3061
- add_action( 'wp_ajax_wpuf_get_shop_states', 'wpuf_ajax_get_states_field' );
3062
- add_action( 'wp_ajax_nopriv_wpuf_get_shop_states', 'wpuf_ajax_get_states_field' );
3063
 
3064
  /**
3065
  * Performs tax calculations and updates billing address
@@ -3067,13 +3070,14 @@ add_action( 'wp_ajax_nopriv_wpuf_get_shop_states', 'wpuf_ajax_get_states_field'
3067
  * @return void
3068
  */
3069
  function wpuf_update_billing_address() {
3070
- ob_start();
3071
- $nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_key( wp_unslash( $_REQUEST['_wpnonce'] ) ) : '';
3072
 
3073
  if ( isset( $nonce ) && ! wp_verify_nonce( $nonce, 'wpuf-ajax-address' ) ) {
3074
  return ;
3075
  }
3076
 
 
 
3077
  $user_id = get_current_user_id();
3078
  $add_line_1 = isset( $_POST['billing_add_line1'] ) ? sanitize_text_field( wp_unslash( $_POST['billing_add_line1'] ) ) : '';
3079
  $add_line_2 = isset( $_POST['billing_add_line2'] ) ? sanitize_text_field( wp_unslash( $_POST['billing_add_line2'] ) ) : '';
@@ -3097,8 +3101,8 @@ function wpuf_update_billing_address() {
3097
 
3098
  $post_data['type'] = $type;
3099
  $post_data['id'] = $id;
3100
- $post_data['billing_country'] = $billing_country;
3101
- $post_data['billing_state'] = $billing_state;
3102
 
3103
  $is_pro = wpuf()->is_pro();
3104
 
@@ -3114,7 +3118,7 @@ add_action( 'wp_ajax_nopriv_wpuf_update_billing_address', 'wpuf_update_billing_a
3114
  /**
3115
  * Retrieve user address
3116
  *
3117
- * @return void
3118
  */
3119
  function wpuf_get_user_address() {
3120
  $user_id = get_current_user_id();
419
  'value' =>[],
420
  'name' => [],
421
  'id' => [],
422
+ ],
423
+ 'ul' => [
424
+ 'class' => []
425
  ]
426
  ] );
427
  echo wp_kses_post( '</ul>' );
733
  if ( isset( $attr['wpuf_cond']['condition_status'] ) && $attr['wpuf_cond']['condition_status'] == 'yes' ) {
734
  foreach ( $attr['wpuf_cond']['cond_field'] as $field_key => $cond_field_name ) {
735
 
736
+ //check if the conditional field is a taxonomy
737
  if ( taxonomy_exists( $cond_field_name ) ) {
738
  $post_terms = wp_get_post_terms( $post->ID, $cond_field_name, true );
739
  $cond_field_value = [];
743
  $cond_field_value[] = $term_array->term_id;
744
  }
745
  }
746
+ $cond_field_value = isset($post_terms[0]) ? $post_terms[0]->term_id : '';
747
  } else {
748
  $cond_field_value = get_post_meta( $post->ID, $cond_field_name, 'true' );
749
  }
1516
  $nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_key( wp_unslash( $_REQUEST['_wpnonce'] ) ) : '';
1517
 
1518
  $parentCat = isset( $_POST['catID'] ) ? sanitize_text_field( wp_unslash( $_POST['catID'] ) ) : '';
1519
+ $field_attr = isset( $_POST['field_attr'] ) ? array_map('sanitize_text_field', wp_unslash( $_POST['field_attr'] ) ) : [];
1520
 
1521
  if ( isset( $nonce ) && ! wp_verify_nonce( $nonce, 'wpuf_nonce' ) ) {
1522
+
1523
  }
1524
+ $allowed_tags = wp_kses_allowed_html( 'post' );
1525
 
1526
 
1527
  $taxonomy = $field_attr['name'];
1530
  $result = '';
1531
 
1532
  if ( $parentCat < 1 ) {
1533
+ die( wp_kses_post( $result, $allowed_tags ) );
1534
  }
1535
 
1536
  if ( $terms = get_categories( 'taxonomy=' . $taxonomy . '&child_of=' . $parentCat . '&hide_empty=0' ) ) {
1543
  }
1544
  // $result .= WPUF_Render_Form::init()->taxnomy_select( '', $field_attr );
1545
  $result .= taxnomy_select( '', $field_attr );
1546
+
1547
  } else {
1548
  die( '' );
1549
  }
1550
+ die( wp_kses_post( $result, $allowed_tags ) );
 
1551
  }
1552
 
1553
  function taxnomy_select( $terms, $attr ) {
1583
 
1584
  $select = wp_dropdown_categories( $tax_args );
1585
 
1586
+ echo str_replace( '<select', '<select ' . $required, $select ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
1587
  $attr = [
1588
  'required' => $attr['required'],
1589
  'name' => $attr['name'],
1596
  //'term_id' => $selected
1597
  ];
1598
  $attr = apply_filters( 'wpuf_taxonomy_checklist_args', $attr ); ?>
1599
+ <span data-taxonomy=<?php echo json_encode( $attr ); ?>></span>
1600
  <?php
1601
  }
1602
 
3031
  * @return void
3032
  */
3033
  function wpuf_ajax_get_states_field() {
3034
+ $nonce = isset( $_POST['_wpnonce'] ) ? sanitize_key( wp_unslash( $_POST['_wpnonce'] ) ) : '';
3035
 
3036
  if ( isset( $nonce ) && ! wp_verify_nonce( $nonce, 'wpuf-ajax-address' ) ) {
3037
  return ;
3058
  $response = 'nostates';
3059
  }
3060
 
3061
+ wp_send_json( $response ) ; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
3062
+
 
3063
  }
3064
+ add_action( 'wp_ajax_wpuf-ajax-address', 'wpuf_ajax_get_states_field' );
3065
+ add_action( 'wp_ajax_nopriv_wpuf-ajax-address', 'wpuf_ajax_get_states_field' );
3066
 
3067
  /**
3068
  * Performs tax calculations and updates billing address
3070
  * @return void
3071
  */
3072
  function wpuf_update_billing_address() {
3073
+ $nonce = isset( $_POST['_wpnonce'] ) ? sanitize_key( wp_unslash( $_POST['_wpnonce'] ) ) : '';
 
3074
 
3075
  if ( isset( $nonce ) && ! wp_verify_nonce( $nonce, 'wpuf-ajax-address' ) ) {
3076
  return ;
3077
  }
3078
 
3079
+ ob_start();
3080
+
3081
  $user_id = get_current_user_id();
3082
  $add_line_1 = isset( $_POST['billing_add_line1'] ) ? sanitize_text_field( wp_unslash( $_POST['billing_add_line1'] ) ) : '';
3083
  $add_line_2 = isset( $_POST['billing_add_line2'] ) ? sanitize_text_field( wp_unslash( $_POST['billing_add_line2'] ) ) : '';
3101
 
3102
  $post_data['type'] = $type;
3103
  $post_data['id'] = $id;
3104
+ $post_data['billing_country'] = $country;
3105
+ $post_data['billing_state'] = $state;
3106
 
3107
  $is_pro = wpuf()->is_pro();
3108
 
3118
  /**
3119
  * Retrieve user address
3120
  *
3121
+ * @return mixed
3122
  */
3123
  function wpuf_get_user_address() {
3124
  $user_id = get_current_user_id();
wpuf.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP User Frontend
4
  Plugin URI: https://wordpress.org/plugins/wp-user-frontend/
5
  Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more...
6
  Author: Tareq Hasan
7
- Version: 3.1.16
8
  Author URI: https://tareq.co
9
  License: GPL2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -12,7 +12,7 @@ Text Domain: wp-user-frontend
12
  Domain Path: /languages
13
  */
14
 
15
- define( 'WPUF_VERSION', '3.1.16' );
16
  define( 'WPUF_FILE', __FILE__ );
17
  define( 'WPUF_ROOT', __DIR__ );
18
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
4
  Plugin URI: https://wordpress.org/plugins/wp-user-frontend/
5
  Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more...
6
  Author: Tareq Hasan
7
+ Version: 3.1.17
8
  Author URI: https://tareq.co
9
  License: GPL2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
  Domain Path: /languages
13
  */
14
 
15
+ define( 'WPUF_VERSION', '3.1.17' );
16
  define( 'WPUF_FILE', __FILE__ );
17
  define( 'WPUF_ROOT', __DIR__ );
18
  define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );