Version Description
Download this release
Release Info
Developer | rabbii |
Plugin | WP User Frontend – Membership, Profile, Registration & Post Submission Plugin for WordPress |
Version | 3.1.9 |
Comparing to | |
See all releases |
Code changes from version 3.1.8 to 3.1.9
- assets/css/admin.css +3 -0
- assets/js/billing-address.js +6 -3
- assets/js/subscriptions.js +5 -10
- assets/less/admin.less +4 -0
- class/payment.php +1 -0
- includes/class-billing-address.php +21 -24
- includes/class-frontend-form-post.php +101 -83
- includes/class-gutenblock.php +2 -2
- includes/free/class-login.php +1 -1
- includes/free/class-registration.php +3 -3
- includes/free/post-form-templates/woocommerce.php +4 -0
- languages/wp-user-frontend.pot +26 -26
- readme.txt +10 -1
- wpuf.php +2 -2
assets/css/admin.css
CHANGED
@@ -637,6 +637,9 @@ ul.wpuf-form .wpuf-field-columns .wpuf-column-field-inner-columns .wpuf-column .
|
|
637 |
.wpuf-setup-menu-link {
|
638 |
display: none;
|
639 |
}
|
|
|
|
|
|
|
640 |
.wpuf-help-tabbed {
|
641 |
display: flex;
|
642 |
width: 100%;
|
637 |
.wpuf-setup-menu-link {
|
638 |
display: none;
|
639 |
}
|
640 |
+
.wpuf-xmp-tag {
|
641 |
+
display: inline;
|
642 |
+
}
|
643 |
.wpuf-help-tabbed {
|
644 |
display: flex;
|
645 |
width: 100%;
|
assets/js/billing-address.js
CHANGED
@@ -47,9 +47,12 @@ jQuery(function($){
|
|
47 |
var city = $("#wpuf_biiling_city");
|
48 |
var zip = $("#wpuf_biiling_zip_code");
|
49 |
|
50 |
-
if ( ( country.val() === '' || state.val() === '' ) ||
|
51 |
-
( add_1.hasClass('bill_required') && add_1.val() === "" ) ||
|
52 |
-
(
|
|
|
|
|
|
|
53 |
alert( ajax_object.fill_notice );
|
54 |
e.preventDefault();
|
55 |
}
|
47 |
var city = $("#wpuf_biiling_city");
|
48 |
var zip = $("#wpuf_biiling_zip_code");
|
49 |
|
50 |
+
if ( ( country.val() === '' || state.val() === '' ) ||
|
51 |
+
( add_1.hasClass('bill_required') && add_1.val() === "" ) ||
|
52 |
+
( add_2.hasClass('bill_required') && add_2.val() === "" ) ||
|
53 |
+
( city.hasClass('bill_required') && city.val() === "" ) ||
|
54 |
+
( zip.hasClass('bill_required') && zip.val() === "" ) )
|
55 |
+
{
|
56 |
alert( ajax_object.fill_notice );
|
57 |
e.preventDefault();
|
58 |
}
|
assets/js/subscriptions.js
CHANGED
@@ -114,17 +114,16 @@
|
|
114 |
coupon_field.removeClass('wpuf-coupon-field-spinner');
|
115 |
|
116 |
if ( res.success ) {
|
117 |
-
|
118 |
$('.wpuf-pack-inner' ).html( res.data.append_data );
|
119 |
-
|
120 |
$('.wpuf-coupon-id-field').val('');
|
121 |
|
122 |
var coupon_wrap = self.closest('.wpuf-copon-wrap');
|
123 |
|
124 |
coupon_wrap.hide();
|
125 |
-
|
126 |
coupon_wrap.siblings('.wpuf-copon-show').show();
|
127 |
|
|
|
|
|
128 |
}
|
129 |
|
130 |
});
|
@@ -182,25 +181,21 @@
|
|
182 |
coupon_field.addClass('wpuf-coupon-field-spinner');
|
183 |
|
184 |
$.post( wpuf_frontend.ajaxurl, data, function( res ) {
|
185 |
-
|
186 |
coupon_field.removeClass('wpuf-coupon-field-spinner');
|
187 |
|
188 |
if ( res.success ) {
|
189 |
-
|
190 |
$('.wpuf-pack-inner' ).html( res.data.append_data );
|
191 |
-
|
192 |
$('.wpuf-coupon-id-field').val( res.data.coupon_id );
|
193 |
|
194 |
if ( res.data.amount <= 0 ) {
|
195 |
-
|
196 |
$('.wpuf-nullamount-hide').hide();
|
197 |
-
|
198 |
}
|
199 |
|
|
|
|
|
200 |
} else {
|
201 |
-
|
202 |
$('.wpuf-subscription-error').html(res.data.message);
|
203 |
-
|
204 |
}
|
205 |
|
206 |
});
|
114 |
coupon_field.removeClass('wpuf-coupon-field-spinner');
|
115 |
|
116 |
if ( res.success ) {
|
|
|
117 |
$('.wpuf-pack-inner' ).html( res.data.append_data );
|
|
|
118 |
$('.wpuf-coupon-id-field').val('');
|
119 |
|
120 |
var coupon_wrap = self.closest('.wpuf-copon-wrap');
|
121 |
|
122 |
coupon_wrap.hide();
|
|
|
123 |
coupon_wrap.siblings('.wpuf-copon-show').show();
|
124 |
|
125 |
+
$('.wpuf-subscription-success').html('');
|
126 |
+
$('.wpuf-subscription-error').html('');
|
127 |
}
|
128 |
|
129 |
});
|
181 |
coupon_field.addClass('wpuf-coupon-field-spinner');
|
182 |
|
183 |
$.post( wpuf_frontend.ajaxurl, data, function( res ) {
|
|
|
184 |
coupon_field.removeClass('wpuf-coupon-field-spinner');
|
185 |
|
186 |
if ( res.success ) {
|
|
|
187 |
$('.wpuf-pack-inner' ).html( res.data.append_data );
|
|
|
188 |
$('.wpuf-coupon-id-field').val( res.data.coupon_id );
|
189 |
|
190 |
if ( res.data.amount <= 0 ) {
|
|
|
191 |
$('.wpuf-nullamount-hide').hide();
|
|
|
192 |
}
|
193 |
|
194 |
+
$('.wpuf-subscription-success').html(res.data.message);
|
195 |
+
$('.wpuf-subscription-error').html('');
|
196 |
} else {
|
197 |
+
$('.wpuf-subscription-success').html('');
|
198 |
$('.wpuf-subscription-error').html(res.data.message);
|
|
|
199 |
}
|
200 |
|
201 |
});
|
assets/less/admin.less
CHANGED
@@ -831,6 +831,10 @@ ul.wpuf-form{
|
|
831 |
display: none;
|
832 |
}
|
833 |
|
|
|
|
|
|
|
|
|
834 |
@import "help.less";
|
835 |
@import "whats-new.less";
|
836 |
@import "metabox-tabs.less";
|
831 |
display: none;
|
832 |
}
|
833 |
|
834 |
+
.wpuf-xmp-tag{
|
835 |
+
display: inline;
|
836 |
+
}
|
837 |
+
|
838 |
@import "help.less";
|
839 |
@import "whats-new.less";
|
840 |
@import "metabox-tabs.less";
|
class/payment.php
CHANGED
@@ -167,6 +167,7 @@ class WPUF_Payment {
|
|
167 |
<a style="white-space: nowrap" href="<?php echo wpuf_get_subscription_page_url(); ?>"><?php _e( 'Change Pack', 'wp-user-frontend' ); ?></a>
|
168 |
</h3>
|
169 |
<div class="wpuf-subscription-error"></div>
|
|
|
170 |
|
171 |
<div class="wpuf-pack-inner">
|
172 |
|
167 |
<a style="white-space: nowrap" href="<?php echo wpuf_get_subscription_page_url(); ?>"><?php _e( 'Change Pack', 'wp-user-frontend' ); ?></a>
|
168 |
</h3>
|
169 |
<div class="wpuf-subscription-error"></div>
|
170 |
+
<div class="wpuf-subscription-success"></div>
|
171 |
|
172 |
<div class="wpuf-pack-inner">
|
173 |
|
includes/class-billing-address.php
CHANGED
@@ -47,6 +47,9 @@ class WPUF_Ajax_Address_Form {
|
|
47 |
$show_city = wpuf_get_option( 'city', 'wpuf_address_options', false );
|
48 |
$show_zip = wpuf_get_option( 'zip', 'wpuf_address_options', false );
|
49 |
|
|
|
|
|
|
|
50 |
$country_req = ''; $country_hide = ''; $state_req = ''; $state_hide = ''; $add1_req = ''; $add1_hide = '';
|
51 |
$add2_req = ''; $add2_hide = ''; $city_req = ''; $city_hide = ''; $zip_req = ''; $zip_hide = ''; $required = '';
|
52 |
|
@@ -56,8 +59,7 @@ class WPUF_Ajax_Address_Form {
|
|
56 |
|
57 |
switch ( $show_country ) {
|
58 |
case 'required':
|
59 |
-
$
|
60 |
-
$required = 'bill_required';
|
61 |
break;
|
62 |
case 'hidden':
|
63 |
$country_hide = 'display: none;';
|
@@ -66,8 +68,7 @@ class WPUF_Ajax_Address_Form {
|
|
66 |
}
|
67 |
switch ( $show_state ) {
|
68 |
case 'required':
|
69 |
-
$
|
70 |
-
$required = 'bill_required';
|
71 |
break;
|
72 |
case 'hidden':
|
73 |
$state_hide = 'display: none;';
|
@@ -76,8 +77,7 @@ class WPUF_Ajax_Address_Form {
|
|
76 |
}
|
77 |
switch ( $show_add1 ) {
|
78 |
case 'required':
|
79 |
-
$
|
80 |
-
$required = 'bill_required';
|
81 |
break;
|
82 |
case 'hidden':
|
83 |
$add1_hide = 'display: none;';
|
@@ -86,8 +86,7 @@ class WPUF_Ajax_Address_Form {
|
|
86 |
}
|
87 |
switch ( $show_add2 ) {
|
88 |
case 'required':
|
89 |
-
$
|
90 |
-
$required = 'bill_required';
|
91 |
break;
|
92 |
case 'hidden':
|
93 |
$add2_hide = 'display: none;';
|
@@ -96,8 +95,7 @@ class WPUF_Ajax_Address_Form {
|
|
96 |
}
|
97 |
switch ( $show_city ) {
|
98 |
case 'required':
|
99 |
-
$
|
100 |
-
$required = 'bill_required';
|
101 |
break;
|
102 |
case 'hidden':
|
103 |
$city_hide = 'display: none;';
|
@@ -106,8 +104,7 @@ class WPUF_Ajax_Address_Form {
|
|
106 |
}
|
107 |
switch ( $show_zip ) {
|
108 |
case 'required':
|
109 |
-
$
|
110 |
-
$required = 'bill_required';
|
111 |
break;
|
112 |
case 'hidden':
|
113 |
$zip_hide = 'display: none;';
|
@@ -121,8 +118,8 @@ class WPUF_Ajax_Address_Form {
|
|
121 |
<form class="wpuf-form form-label-above" id="wpuf-ajax-address-form" action="" method="post">
|
122 |
<table id="wpuf-address-country-state" class="wp-list-table widefat">
|
123 |
<tr>
|
124 |
-
<td class="<?php echo $
|
125 |
-
<label><?php _e( "Country", "wp-user-frontend" ); ?><?php echo $
|
126 |
<br>
|
127 |
<?php
|
128 |
if (function_exists('wpuf_get_tax_rates')) {
|
@@ -148,8 +145,8 @@ class WPUF_Ajax_Address_Form {
|
|
148 |
));
|
149 |
?>
|
150 |
</td>
|
151 |
-
<td class="<?php echo $
|
152 |
-
<label><?php _e( "State/Province/Region", "wp-user-frontend" ); ?><?php echo $
|
153 |
<br>
|
154 |
<?php
|
155 |
$states = $cs->getStates($selected['country']);
|
@@ -168,32 +165,32 @@ class WPUF_Ajax_Address_Form {
|
|
168 |
?>
|
169 |
</td>
|
170 |
<td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $add1_hide;?>">
|
171 |
-
<div class="wpuf-label"><?php _e('Address Line 1 ', 'wp-user-frontend'); ?><?php echo $
|
172 |
<div class="wpuf-fields">
|
173 |
-
<input type="text" class="input <?php echo $
|
174 |
id="wpuf_biiling_add_line_1"
|
175 |
value="<?php echo $address_fields['add_line_1']; ?>"/>
|
176 |
</div>
|
177 |
</td>
|
178 |
<td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $add2_hide;?>">
|
179 |
-
<div class="wpuf-label"><?php _e('Address Line 2 ', 'wp-user-frontend'); ?><?php echo $
|
180 |
<div class="wpuf-fields">
|
181 |
-
<input type="text" class="input <?php echo $
|
182 |
id="wpuf_biiling_add_line_2"
|
183 |
value="<?php echo $address_fields['add_line_2']; ?>"/>
|
184 |
</div>
|
185 |
</td>
|
186 |
<td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $city_hide; ?>">
|
187 |
-
<div class="wpuf-label"><?php _e('City', 'wp-user-frontend'); ?><?php echo $
|
188 |
<div class="wpuf-fields">
|
189 |
-
<input type="text" class="input <?php echo $
|
190 |
value="<?php echo $address_fields['city']; ?>"/>
|
191 |
</div>
|
192 |
</td>
|
193 |
<td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $zip_hide; ?>">
|
194 |
-
<div class="wpuf-label"><?php _e('Postal Code/ZIP', 'wp-user-frontend'); ?><?php echo $
|
195 |
<div class="wpuf-fields">
|
196 |
-
<input type="text" class="input <?php echo $
|
197 |
value="<?php echo $address_fields['zip_code']; ?>"/>
|
198 |
</div>
|
199 |
</td>
|
47 |
$show_city = wpuf_get_option( 'city', 'wpuf_address_options', false );
|
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 = ''; $country_hide = ''; $state_req = ''; $state_hide = ''; $add1_req = ''; $add1_hide = '';
|
54 |
$add2_req = ''; $add2_hide = ''; $city_req = ''; $city_hide = ''; $zip_req = ''; $zip_hide = ''; $required = '';
|
55 |
|
59 |
|
60 |
switch ( $show_country ) {
|
61 |
case 'required':
|
62 |
+
$country_required = true;
|
|
|
63 |
break;
|
64 |
case 'hidden':
|
65 |
$country_hide = 'display: none;';
|
68 |
}
|
69 |
switch ( $show_state ) {
|
70 |
case 'required':
|
71 |
+
$state_required = true;
|
|
|
72 |
break;
|
73 |
case 'hidden':
|
74 |
$state_hide = 'display: none;';
|
77 |
}
|
78 |
switch ( $show_add1 ) {
|
79 |
case 'required':
|
80 |
+
$address1_required = true;
|
|
|
81 |
break;
|
82 |
case 'hidden':
|
83 |
$add1_hide = 'display: none;';
|
86 |
}
|
87 |
switch ( $show_add2 ) {
|
88 |
case 'required':
|
89 |
+
$address2_required = true;
|
|
|
90 |
break;
|
91 |
case 'hidden':
|
92 |
$add2_hide = 'display: none;';
|
95 |
}
|
96 |
switch ( $show_city ) {
|
97 |
case 'required':
|
98 |
+
$city_required = true;
|
|
|
99 |
break;
|
100 |
case 'hidden':
|
101 |
$city_hide = 'display: none;';
|
104 |
}
|
105 |
switch ( $show_zip ) {
|
106 |
case 'required':
|
107 |
+
$zip_required = true;
|
|
|
108 |
break;
|
109 |
case 'hidden':
|
110 |
$zip_hide = 'display: none;';
|
118 |
<form class="wpuf-form form-label-above" id="wpuf-ajax-address-form" action="" method="post">
|
119 |
<table id="wpuf-address-country-state" class="wp-list-table widefat">
|
120 |
<tr>
|
121 |
+
<td class="<?php echo isset( $country_required ) ? $required_class : null; ?>" style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $country_hide; ?>">
|
122 |
+
<label><?php _e( "Country", "wp-user-frontend" ); ?><?php echo isset( $country_required ) ? $req_div : null; ?></label>
|
123 |
<br>
|
124 |
<?php
|
125 |
if (function_exists('wpuf_get_tax_rates')) {
|
145 |
));
|
146 |
?>
|
147 |
</td>
|
148 |
+
<td class="<?php echo isset( $state_required ) ? $required_class : null; ?>" style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $state_hide;?>">
|
149 |
+
<label><?php _e( "State/Province/Region", "wp-user-frontend" ); ?><?php echo isset( $state_required ) ? $req_div : null; ?></label>
|
150 |
<br>
|
151 |
<?php
|
152 |
$states = $cs->getStates($selected['country']);
|
165 |
?>
|
166 |
</td>
|
167 |
<td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $add1_hide;?>">
|
168 |
+
<div class="wpuf-label"><?php _e('Address Line 1 ', 'wp-user-frontend'); ?><?php echo isset( $address1_required ) ? $req_div : null; ?></div>
|
169 |
<div class="wpuf-fields">
|
170 |
+
<input type="text" class="input <?php echo isset( $address1_required ) ? $required_class : null; ?>" name="wpuf_biiling_add_line_1"
|
171 |
id="wpuf_biiling_add_line_1"
|
172 |
value="<?php echo $address_fields['add_line_1']; ?>"/>
|
173 |
</div>
|
174 |
</td>
|
175 |
<td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $add2_hide;?>">
|
176 |
+
<div class="wpuf-label"><?php _e('Address Line 2 ', 'wp-user-frontend'); ?><?php echo isset( $address2_required ) ? $req_div : null; ?></div>
|
177 |
<div class="wpuf-fields">
|
178 |
+
<input type="text" class="input <?php echo isset( $address2_required ) ? $required_class : null; ?>" name="wpuf_biiling_add_line_2"
|
179 |
id="wpuf_biiling_add_line_2"
|
180 |
value="<?php echo $address_fields['add_line_2']; ?>"/>
|
181 |
</div>
|
182 |
</td>
|
183 |
<td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $city_hide; ?>">
|
184 |
+
<div class="wpuf-label"><?php _e('City', 'wp-user-frontend'); ?><?php echo isset( $city_required ) ? $req_div : null; ?></div>
|
185 |
<div class="wpuf-fields">
|
186 |
+
<input type="text" class="input <?php echo isset( $city_required ) ? $required_class : null; ?>" name="wpuf_biiling_city" id="wpuf_biiling_city"
|
187 |
value="<?php echo $address_fields['city']; ?>"/>
|
188 |
</div>
|
189 |
</td>
|
190 |
<td style="display:inline-block;float:left;width:100%;margin:0px;padding:5px;<?php echo $zip_hide; ?>">
|
191 |
+
<div class="wpuf-label"><?php _e('Postal Code/ZIP', 'wp-user-frontend'); ?><?php echo isset( $zip_required ) ? $req_div : null; ?></div>
|
192 |
<div class="wpuf-fields">
|
193 |
+
<input type="text" class="input <?php echo isset( $zip_required ) ? $required_class : null; ?>" name="wpuf_biiling_zip_code" id="wpuf_biiling_zip_code"
|
194 |
value="<?php echo $address_fields['zip_code']; ?>"/>
|
195 |
</div>
|
196 |
</td>
|
includes/class-frontend-form-post.php
CHANGED
@@ -867,94 +867,112 @@ class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form{
|
|
867 |
}
|
868 |
|
869 |
|
870 |
-
public function send_mail_for_guest($charging_enabled
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
)
|
887 |
-
|
888 |
-
|
889 |
-
}
|
890 |
} else {
|
891 |
-
|
892 |
-
$redirect_to = get_permalink( $this->form_settings['page_id'] );
|
893 |
-
} elseif ( $this->form_settings['redirect_to'] == 'url' ) {
|
894 |
-
$redirect_to = $this->form_settings['url'];
|
895 |
-
} elseif ( $this->form_settings['redirect_to'] == 'same' ) {
|
896 |
-
$show_message = true;
|
897 |
-
} else {
|
898 |
-
$redirect_to = get_permalink( $post_id );
|
899 |
-
}
|
900 |
}
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
)
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
if ( $guest_mode == 'true' && $guest_verify == 'true' && !is_user_logged_in() && $charging_enabled != 'yes') {
|
911 |
-
$post_id_encoded = wpuf_encryption( $post_id ) ;
|
912 |
-
$form_id_encoded = wpuf_encryption( $form_id ) ;
|
913 |
-
wpuf_send_mail_to_guest ( $post_id_encoded, $form_id_encoded, 'no', 1 );
|
914 |
-
$response['show_message'] = true;
|
915 |
-
$response['redirect_to'] = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
|
916 |
-
$response['message'] = __( 'Thank you for posting on our site. We have sent you an confirmation email. Please check your inbox!', 'wp-user-frontend' );
|
917 |
-
} elseif ( $guest_mode == 'true' && $guest_verify == 'true' && !is_user_logged_in() && $charging_enabled == 'yes' ) {
|
918 |
-
$post_id_encoded = wpuf_encryption( $post_id ) ;
|
919 |
-
$form_id_encoded = wpuf_encryption( $form_id ) ;
|
920 |
-
$response['show_message'] = true;
|
921 |
-
$response['redirect_to'] = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
|
922 |
-
$response['message'] = __( 'Thank you for posting on our site. We have sent you an confirmation email. Please check your inbox!', 'wp-user-frontend' );
|
923 |
-
update_post_meta ( $post_id, '_wpuf_payment_status', 'pending' );
|
924 |
-
wpuf_send_mail_to_guest ( $post_id_encoded, $form_id_encoded, 'yes', 2 );
|
925 |
-
}
|
926 |
-
if ( $guest_mode == 'true' && $guest_verify == 'true' && !is_user_logged_in() ) {
|
927 |
-
$response = apply_filters( 'wpuf_edit_post_redirect', $response, $post_id, $form_id, $this->form_settings );
|
928 |
-
} elseif ( $is_update ) {
|
929 |
-
//send mail notification
|
930 |
-
if ( isset( $this->form_settings['notification'] ) && $this->form_settings['notification']['edit'] == 'on' ) {
|
931 |
-
$mail_body = $this->prepare_mail_body( $this->form_settings['notification']['edit_body'], $post_author, $post_id );
|
932 |
-
$to = $this->prepare_mail_body( $this->form_settings['notification']['edit_to'], $post_author, $post_id );
|
933 |
-
$subject = $this->prepare_mail_body( $this->form_settings['notification']['edit_subject'], $post_author, $post_id );
|
934 |
-
$subject = wp_strip_all_tags( $subject );
|
935 |
-
$headers = array('Content-Type: text/html; charset=UTF-8');
|
936 |
-
wp_mail( $to, $subject, $mail_body, $headers );
|
937 |
-
}
|
938 |
-
//now redirect the user
|
939 |
-
$response = apply_filters( 'wpuf_edit_post_redirect', $response, $post_id, $form_id, $this->form_settings );
|
940 |
-
//now perform some post related actions
|
941 |
-
do_action( 'wpuf_edit_post_after_update', $post_id, $form_id, $this->form_settings, $this->form_fields ); // plugin API to extend the functionality
|
942 |
} else {
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
955 |
}
|
956 |
|
957 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
958 |
}
|
959 |
|
960 |
}
|
867 |
}
|
868 |
|
869 |
|
870 |
+
public function send_mail_for_guest( $charging_enabled, $post_id, $form_id, $is_update, $post_author, $meta_vars ) {
|
871 |
+
global $wp;
|
872 |
+
|
873 |
+
$show_message = false;
|
874 |
+
$redirect_to = false;
|
875 |
+
$response = array();
|
876 |
+
|
877 |
+
if ( $is_update ) {
|
878 |
+
|
879 |
+
if ( $this->form_settings['edit_redirect_to'] == 'page' ) {
|
880 |
+
$redirect_to = get_permalink( $this->form_settings['edit_page_id'] );
|
881 |
+
} elseif ( $this->form_settings['edit_redirect_to'] == 'url' ) {
|
882 |
+
$redirect_to = $this->form_settings['edit_url'];
|
883 |
+
} elseif ( $this->form_settings['edit_redirect_to'] == 'same' ) {
|
884 |
+
$redirect_to = add_query_arg( array(
|
885 |
+
'pid' => $post_id,
|
886 |
+
'_wpnonce' => wp_create_nonce( 'wpuf_edit' ),
|
887 |
+
'msg' => 'post_updated'
|
888 |
+
), get_permalink( $_POST['page_id'] ) );
|
|
|
889 |
} else {
|
890 |
+
$redirect_to = get_permalink( $post_id );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
891 |
}
|
892 |
+
|
893 |
+
} else {
|
894 |
+
|
895 |
+
if ( $this->form_settings['redirect_to'] == 'page' ) {
|
896 |
+
$redirect_to = get_permalink( $this->form_settings['page_id'] );
|
897 |
+
} elseif ( $this->form_settings['redirect_to'] == 'url' ) {
|
898 |
+
$redirect_to = $this->form_settings['url'];
|
899 |
+
} elseif ( $this->form_settings['redirect_to'] == 'same' ) {
|
900 |
+
$show_message = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
901 |
} else {
|
902 |
+
$redirect_to = get_permalink( $post_id );
|
903 |
+
}
|
904 |
+
|
905 |
+
}
|
906 |
+
|
907 |
+
$response = array(
|
908 |
+
'success' => true,
|
909 |
+
'redirect_to' => $redirect_to,
|
910 |
+
'show_message' => $show_message,
|
911 |
+
'message' => $this->form_settings['message']
|
912 |
+
);
|
913 |
+
|
914 |
+
$guest_mode = isset( $this->form_settings['guest_post'] ) ? $this->form_settings['guest_post'] : '';
|
915 |
+
$guest_verify = isset( $this->form_settings['guest_email_verify'] ) ? $this->form_settings['guest_email_verify'] : 'false' ;
|
916 |
+
|
917 |
+
if ( $guest_mode == 'true' && $guest_verify == 'true' && !is_user_logged_in() && $charging_enabled != 'yes') {
|
918 |
+
$post_id_encoded = wpuf_encryption( $post_id ) ;
|
919 |
+
$form_id_encoded = wpuf_encryption( $form_id ) ;
|
920 |
+
|
921 |
+
wpuf_send_mail_to_guest ( $post_id_encoded, $form_id_encoded, 'no', 1 );
|
922 |
+
|
923 |
+
$response['show_message'] = true;
|
924 |
+
$response['redirect_to'] = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
|
925 |
+
$response['message'] = __( 'Thank you for posting on our site. We have sent you an confirmation email. Please check your inbox!', 'wp-user-frontend' );
|
926 |
+
} elseif ( $guest_mode == 'true' && $guest_verify == 'true' && !is_user_logged_in() && $charging_enabled == 'yes' ) {
|
927 |
+
$post_id_encoded = wpuf_encryption( $post_id ) ;
|
928 |
+
$form_id_encoded = wpuf_encryption( $form_id ) ;
|
929 |
+
$response['show_message'] = true;
|
930 |
+
$response['redirect_to'] = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
|
931 |
+
$response['message'] = __( 'Thank you for posting on our site. We have sent you an confirmation email. Please check your inbox!', 'wp-user-frontend' );
|
932 |
+
|
933 |
+
update_post_meta ( $post_id, '_wpuf_payment_status', 'pending' );
|
934 |
+
wpuf_send_mail_to_guest ( $post_id_encoded, $form_id_encoded, 'yes', 2 );
|
935 |
+
}
|
936 |
+
|
937 |
+
if ( $guest_mode == 'true' && $guest_verify == 'true' && !is_user_logged_in() ) {
|
938 |
+
$response = apply_filters( 'wpuf_edit_post_redirect', $response, $post_id, $form_id, $this->form_settings );
|
939 |
+
} elseif ( $is_update ) {
|
940 |
+
//send mail notification
|
941 |
+
if ( isset( $this->form_settings['notification'] ) && $this->form_settings['notification']['edit'] == 'on' ) {
|
942 |
+
$mail_body = $this->prepare_mail_body( $this->form_settings['notification']['edit_body'], $post_author, $post_id );
|
943 |
+
$to = $this->prepare_mail_body( $this->form_settings['notification']['edit_to'], $post_author, $post_id );
|
944 |
+
$subject = $this->prepare_mail_body( $this->form_settings['notification']['edit_subject'], $post_author, $post_id );
|
945 |
+
$subject = wp_strip_all_tags( $subject );
|
946 |
+
$mail_body = get_formatted_mail_body( $mail_body, $subject );
|
947 |
+
|
948 |
+
wp_mail( $to, $subject, $mail_body );
|
949 |
}
|
950 |
|
951 |
+
//now redirect the user
|
952 |
+
$response = apply_filters( 'wpuf_edit_post_redirect', $response, $post_id, $form_id, $this->form_settings );
|
953 |
+
|
954 |
+
//now perform some post related actions
|
955 |
+
do_action( 'wpuf_edit_post_after_update', $post_id, $form_id, $this->form_settings, $this->form_fields ); // plugin API to extend the functionality
|
956 |
+
} else {
|
957 |
+
// send mail notification
|
958 |
+
if ( isset( $this->form_settings['notification'] ) && $this->form_settings['notification']['new'] == 'on' ) {
|
959 |
+
$mail_body = $this->prepare_mail_body( $this->form_settings['notification']['new_body'], $post_author, $post_id );
|
960 |
+
$to = $this->prepare_mail_body( $this->form_settings['notification']['new_to'], $post_author, $post_id );
|
961 |
+
$subject = $this->prepare_mail_body( $this->form_settings['notification']['new_subject'], $post_author, $post_id );
|
962 |
+
$subject = wp_strip_all_tags( $subject );
|
963 |
+
$mail_body = get_formatted_mail_body( $mail_body, $subject );
|
964 |
+
|
965 |
+
wp_mail( $to, $subject, $mail_body, $headers );
|
966 |
+
}
|
967 |
+
|
968 |
+
//redirect the user
|
969 |
+
$response = apply_filters( 'wpuf_add_post_redirect', $response, $post_id, $form_id, $this->form_settings );
|
970 |
+
|
971 |
+
//now perform some post related actions
|
972 |
+
do_action( 'wpuf_add_post_after_insert', $post_id, $form_id, $this->form_settings, $meta_vars ); // plugin API to extend the functionality
|
973 |
+
}
|
974 |
+
|
975 |
+
return $response;
|
976 |
}
|
977 |
|
978 |
}
|
includes/class-gutenblock.php
CHANGED
@@ -11,7 +11,7 @@ class WPUF_Form_Block {
|
|
11 |
//when wpuf_form shortcode exists in admin pages.
|
12 |
add_action( 'admin_enqueue_scripts', array( $this, 'load_dashicons' ) );
|
13 |
// wait for Gutenberg to enqueue it's block assets
|
14 |
-
add_action( 'enqueue_block_editor_assets', array( $this, 'wpuf_form_block', 10 )
|
15 |
// load the preview information and form
|
16 |
add_action( 'wp_head', array( $this, 'load_preview_data' ) );
|
17 |
}
|
@@ -41,7 +41,7 @@ class WPUF_Form_Block {
|
|
41 |
wp_register_style(
|
42 |
'wpuf-forms-block-editor',
|
43 |
$css_dir . 'gutenblock-editor.css',
|
44 |
-
array( 'wp-edit-blocks', '
|
45 |
);
|
46 |
|
47 |
/**
|
11 |
//when wpuf_form shortcode exists in admin pages.
|
12 |
add_action( 'admin_enqueue_scripts', array( $this, 'load_dashicons' ) );
|
13 |
// wait for Gutenberg to enqueue it's block assets
|
14 |
+
add_action( 'enqueue_block_editor_assets', array( $this, 'wpuf_form_block' ), 10 );
|
15 |
// load the preview information and form
|
16 |
add_action( 'wp_head', array( $this, 'load_preview_data' ) );
|
17 |
}
|
41 |
wp_register_style(
|
42 |
'wpuf-forms-block-editor',
|
43 |
$css_dir . 'gutenblock-editor.css',
|
44 |
+
array( 'wp-edit-blocks', 'wpuf-forms-block-style' )
|
45 |
);
|
46 |
|
47 |
/**
|
includes/free/class-login.php
CHANGED
@@ -275,7 +275,7 @@ class WPUF_Simple_Login {
|
|
275 |
$links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'login' ), __( 'Log In', 'wp-user-frontend' ) );
|
276 |
}
|
277 |
|
278 |
-
if ( $args['register'] ) {
|
279 |
$links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'register' ), __( 'Register', 'wp-user-frontend' ) );
|
280 |
}
|
281 |
|
275 |
$links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'login' ), __( 'Log In', 'wp-user-frontend' ) );
|
276 |
}
|
277 |
|
278 |
+
if ( $args['register'] && get_option( 'users_can_register' ) ) {
|
279 |
$links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'register' ), __( 'Register', 'wp-user-frontend' ) );
|
280 |
}
|
281 |
|
includes/free/class-registration.php
CHANGED
@@ -117,10 +117,10 @@ class WPUF_Registration {
|
|
117 |
'register' => true
|
118 |
);
|
119 |
|
120 |
-
$args
|
121 |
-
$links
|
122 |
|
123 |
-
if ( $args['register'] ) {
|
124 |
$links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'register' ), __( 'Register', 'wp-user-frontend' ) );
|
125 |
}
|
126 |
|
117 |
'register' => true
|
118 |
);
|
119 |
|
120 |
+
$args = wp_parse_args( $args, $defaults );
|
121 |
+
$links = array();
|
122 |
|
123 |
+
if ( $args['register'] && get_option( 'users_can_register' ) ) {
|
124 |
$links[] = sprintf( '<a href="%s">%s</a>', $this->get_action_url( 'register' ), __( 'Register', 'wp-user-frontend' ) );
|
125 |
}
|
126 |
|
includes/free/post-form-templates/woocommerce.php
CHANGED
@@ -311,6 +311,10 @@ Edit URL: %editlink%',
|
|
311 |
$images = get_post_meta( $post_id, '_product_image' );
|
312 |
|
313 |
if ( !empty( $images ) ) {
|
|
|
|
|
|
|
|
|
314 |
if ( is_serialized( $images[0] ) ) {
|
315 |
$images = maybe_unserialize( $images[0] );
|
316 |
}
|
311 |
$images = get_post_meta( $post_id, '_product_image' );
|
312 |
|
313 |
if ( !empty( $images ) ) {
|
314 |
+
if ( is_array( $images[0] ) ) {
|
315 |
+
$images = $images[0];
|
316 |
+
}
|
317 |
+
|
318 |
if ( is_serialized( $images[0] ) ) {
|
319 |
$images = maybe_unserialize( $images[0] );
|
320 |
}
|
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.
|
6 |
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
|
7 |
-
"POT-Creation-Date: 2019-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -304,7 +304,7 @@ msgstr ""
|
|
304 |
|
305 |
#: admin/class-admin-subscription.php:754
|
306 |
#: admin/form-builder/class-wpuf-admin-form-builder.php:266
|
307 |
-
#: class/payment.php:
|
308 |
#: includes/class-list-table-subscribers.php:128 lib/appsero/Insights.php:751
|
309 |
#: templates/dashboard/subscription.php:61
|
310 |
msgid "Cancel"
|
@@ -3577,8 +3577,8 @@ msgid "You do not have sufficient permissions to access this form."
|
|
3577 |
msgstr ""
|
3578 |
|
3579 |
#: class/frontend-form-post.php:732 class/frontend-form-post.php:739
|
3580 |
-
#: includes/class-frontend-form-post.php:
|
3581 |
-
#: includes/class-frontend-form-post.php:
|
3582 |
msgid ""
|
3583 |
"Thank you for posting on our site. We have sent you an confirmation email. "
|
3584 |
"Please check your inbox!"
|
@@ -3625,47 +3625,47 @@ msgstr ""
|
|
3625 |
msgid "Change Pack"
|
3626 |
msgstr ""
|
3627 |
|
3628 |
-
#: class/payment.php:
|
3629 |
msgid "Selected Pack "
|
3630 |
msgstr ""
|
3631 |
|
3632 |
-
#: class/payment.php:
|
3633 |
msgid "Pack Price "
|
3634 |
msgstr ""
|
3635 |
|
3636 |
-
#: class/payment.php:
|
3637 |
msgid "Total"
|
3638 |
msgstr ""
|
3639 |
|
3640 |
-
#: class/payment.php:
|
3641 |
msgid "Apply Coupon"
|
3642 |
msgstr ""
|
3643 |
|
3644 |
-
#: class/payment.php:
|
3645 |
msgid "Have a discount code?"
|
3646 |
msgstr ""
|
3647 |
|
3648 |
-
#: class/payment.php:
|
3649 |
msgid "Post cost"
|
3650 |
msgstr ""
|
3651 |
|
3652 |
-
#: class/payment.php:
|
3653 |
msgid "Choose Your Payment Method"
|
3654 |
msgstr ""
|
3655 |
|
3656 |
-
#: class/payment.php:
|
3657 |
msgid "Proceed"
|
3658 |
msgstr ""
|
3659 |
|
3660 |
-
#: class/payment.php:
|
3661 |
msgid "No Payment gateway found"
|
3662 |
msgstr ""
|
3663 |
|
3664 |
-
#: class/payment.php:
|
3665 |
msgid "[%s] Payment Received"
|
3666 |
msgstr ""
|
3667 |
|
3668 |
-
#: class/payment.php:
|
3669 |
msgid "New payment received at %s"
|
3670 |
msgstr ""
|
3671 |
|
@@ -4049,52 +4049,52 @@ msgstr ""
|
|
4049 |
msgid "Some Required Fields are not filled!"
|
4050 |
msgstr ""
|
4051 |
|
4052 |
-
#: includes/class-billing-address.php:
|
4053 |
#: includes/class-customizer.php:69 includes/class-privacy.php:275
|
4054 |
#: templates/dashboard/billing-address.php:78
|
4055 |
msgid "Country"
|
4056 |
msgstr ""
|
4057 |
|
4058 |
-
#: includes/class-billing-address.php:
|
4059 |
msgid "Choose a country"
|
4060 |
msgstr ""
|
4061 |
|
4062 |
-
#: includes/class-billing-address.php:
|
4063 |
#: includes/class-customizer.php:70 templates/dashboard/billing-address.php:63
|
4064 |
msgid "State/Province/Region"
|
4065 |
msgstr ""
|
4066 |
|
4067 |
-
#: includes/class-billing-address.php:
|
4068 |
msgid "Choose a state"
|
4069 |
msgstr ""
|
4070 |
|
4071 |
-
#: includes/class-billing-address.php:
|
4072 |
#: templates/dashboard/billing-address.php:42
|
4073 |
msgid "Address Line 1 "
|
4074 |
msgstr ""
|
4075 |
|
4076 |
-
#: includes/class-billing-address.php:
|
4077 |
#: templates/dashboard/billing-address.php:49
|
4078 |
msgid "Address Line 2 "
|
4079 |
msgstr ""
|
4080 |
|
4081 |
-
#: includes/class-billing-address.php:
|
4082 |
#: includes/class-customizer.php:73 includes/class-privacy.php:263
|
4083 |
#: templates/dashboard/billing-address.php:56
|
4084 |
msgid "City"
|
4085 |
msgstr ""
|
4086 |
|
4087 |
-
#: includes/class-billing-address.php:
|
4088 |
#: includes/class-customizer.php:74 templates/dashboard/billing-address.php:73
|
4089 |
msgid "Postal Code/ZIP"
|
4090 |
msgstr ""
|
4091 |
|
4092 |
-
#: includes/class-billing-address.php:
|
4093 |
#: templates/dashboard/billing-address.php:102
|
4094 |
msgid "Update Billing Address"
|
4095 |
msgstr ""
|
4096 |
|
4097 |
-
#: includes/class-billing-address.php:
|
4098 |
#: templates/dashboard/billing-address.php:24
|
4099 |
msgid "Billing address is updated."
|
4100 |
msgstr ""
|
2 |
# This file is distributed under the GPL2 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WP User Frontend 3.1.9\n"
|
6 |
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
|
7 |
+
"POT-Creation-Date: 2019-07-22 05:21:08+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
304 |
|
305 |
#: admin/class-admin-subscription.php:754
|
306 |
#: admin/form-builder/class-wpuf-admin-form-builder.php:266
|
307 |
+
#: class/payment.php:200 class/subscription.php:777
|
308 |
#: includes/class-list-table-subscribers.php:128 lib/appsero/Insights.php:751
|
309 |
#: templates/dashboard/subscription.php:61
|
310 |
msgid "Cancel"
|
3577 |
msgstr ""
|
3578 |
|
3579 |
#: class/frontend-form-post.php:732 class/frontend-form-post.php:739
|
3580 |
+
#: includes/class-frontend-form-post.php:925
|
3581 |
+
#: includes/class-frontend-form-post.php:931
|
3582 |
msgid ""
|
3583 |
"Thank you for posting on our site. We have sent you an confirmation email. "
|
3584 |
"Please check your inbox!"
|
3625 |
msgid "Change Pack"
|
3626 |
msgstr ""
|
3627 |
|
3628 |
+
#: class/payment.php:182
|
3629 |
msgid "Selected Pack "
|
3630 |
msgstr ""
|
3631 |
|
3632 |
+
#: class/payment.php:183
|
3633 |
msgid "Pack Price "
|
3634 |
msgstr ""
|
3635 |
|
3636 |
+
#: class/payment.php:187 class/payment.php:233 includes/class-privacy.php:351
|
3637 |
msgid "Total"
|
3638 |
msgstr ""
|
3639 |
|
3640 |
+
#: class/payment.php:199
|
3641 |
msgid "Apply Coupon"
|
3642 |
msgstr ""
|
3643 |
|
3644 |
+
#: class/payment.php:203
|
3645 |
msgid "Have a discount code?"
|
3646 |
msgstr ""
|
3647 |
|
3648 |
+
#: class/payment.php:229
|
3649 |
msgid "Post cost"
|
3650 |
msgstr ""
|
3651 |
|
3652 |
+
#: class/payment.php:240
|
3653 |
msgid "Choose Your Payment Method"
|
3654 |
msgstr ""
|
3655 |
|
3656 |
+
#: class/payment.php:276
|
3657 |
msgid "Proceed"
|
3658 |
msgstr ""
|
3659 |
|
3660 |
+
#: class/payment.php:282
|
3661 |
msgid "No Payment gateway found"
|
3662 |
msgstr ""
|
3663 |
|
3664 |
+
#: class/payment.php:450 lib/gateway/bank.php:109
|
3665 |
msgid "[%s] Payment Received"
|
3666 |
msgstr ""
|
3667 |
|
3668 |
+
#: class/payment.php:451
|
3669 |
msgid "New payment received at %s"
|
3670 |
msgstr ""
|
3671 |
|
4049 |
msgid "Some Required Fields are not filled!"
|
4050 |
msgstr ""
|
4051 |
|
4052 |
+
#: includes/class-billing-address.php:122 includes/class-customizer.php:24
|
4053 |
#: includes/class-customizer.php:69 includes/class-privacy.php:275
|
4054 |
#: templates/dashboard/billing-address.php:78
|
4055 |
msgid "Country"
|
4056 |
msgstr ""
|
4057 |
|
4058 |
+
#: includes/class-billing-address.php:144
|
4059 |
msgid "Choose a country"
|
4060 |
msgstr ""
|
4061 |
|
4062 |
+
#: includes/class-billing-address.php:149 includes/class-customizer.php:25
|
4063 |
#: includes/class-customizer.php:70 templates/dashboard/billing-address.php:63
|
4064 |
msgid "State/Province/Region"
|
4065 |
msgstr ""
|
4066 |
|
4067 |
+
#: includes/class-billing-address.php:163
|
4068 |
msgid "Choose a state"
|
4069 |
msgstr ""
|
4070 |
|
4071 |
+
#: includes/class-billing-address.php:168
|
4072 |
#: templates/dashboard/billing-address.php:42
|
4073 |
msgid "Address Line 1 "
|
4074 |
msgstr ""
|
4075 |
|
4076 |
+
#: includes/class-billing-address.php:176
|
4077 |
#: templates/dashboard/billing-address.php:49
|
4078 |
msgid "Address Line 2 "
|
4079 |
msgstr ""
|
4080 |
|
4081 |
+
#: includes/class-billing-address.php:184 includes/class-customizer.php:28
|
4082 |
#: includes/class-customizer.php:73 includes/class-privacy.php:263
|
4083 |
#: templates/dashboard/billing-address.php:56
|
4084 |
msgid "City"
|
4085 |
msgstr ""
|
4086 |
|
4087 |
+
#: includes/class-billing-address.php:191 includes/class-customizer.php:29
|
4088 |
#: includes/class-customizer.php:74 templates/dashboard/billing-address.php:73
|
4089 |
msgid "Postal Code/ZIP"
|
4090 |
msgstr ""
|
4091 |
|
4092 |
+
#: includes/class-billing-address.php:199
|
4093 |
#: templates/dashboard/billing-address.php:102
|
4094 |
msgid "Update Billing Address"
|
4095 |
msgstr ""
|
4096 |
|
4097 |
+
#: includes/class-billing-address.php:240
|
4098 |
#: templates/dashboard/billing-address.php:24
|
4099 |
msgid "Billing address is updated."
|
4100 |
msgstr ""
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: Forms, registration, profile-builder, login, membership
|
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.2.2
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 3.1.
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -257,6 +257,15 @@ redirected to the edit page with that post id. Then you'll see the edit post for
|
|
257 |
|
258 |
== Changelog ==
|
259 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
= v3.1.8 (26 June, 2019) =
|
261 |
|
262 |
* **Fix:** Multistep form was scrolling to the top of the browser instead of moving to the top of the form when clicking on `Next` or `Previous` button.
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.2.2
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 3.1.9
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
257 |
|
258 |
== Changelog ==
|
259 |
|
260 |
+
= v3.1.9 (22 July, 2019) =
|
261 |
+
|
262 |
+
* **Fix:** call_user_func_array() error while editing or add a new post from admin panel.
|
263 |
+
* **Fix:** Address fields on payment page were not checking which fields are optional.
|
264 |
+
* **Fix:** WooCommerce gallery images were not being shown on the frontend.
|
265 |
+
* **Fix:** Show & hide coupon message based on response.
|
266 |
+
* **Fix:** Login page was including registration page link even when user registration was turned off.
|
267 |
+
* **Fix:** Notification emails were not respecting the spaces.
|
268 |
+
|
269 |
= v3.1.8 (26 June, 2019) =
|
270 |
|
271 |
* **Fix:** Multistep form was scrolling to the top of the browser instead of moving to the top of the form when clicking on `Next` or `Previous` button.
|
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.
|
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 |
define( 'WPUF_FILE', __FILE__ );
|
17 |
define( 'WPUF_ROOT', dirname( __FILE__ ) );
|
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.9
|
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.9' );
|
16 |
define( 'WPUF_FILE', __FILE__ );
|
17 |
define( 'WPUF_ROOT', dirname( __FILE__ ) );
|
18 |
define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
|