Version Description
Download this release
Release Info
Developer | rabbii |
Plugin | WP User Frontend – Membership, Profile, Registration & Post Submission Plugin for WordPress |
Version | 2.9.4 |
Comparing to | |
See all releases |
Code changes from version 2.9.3 to 2.9.4
- admin/html/whats-new.php +11 -0
- admin/posting.php +0 -0
- admin/promotion.php +8 -9
- assets/css/frontend-forms.css +0 -0
- assets/images/promotional-offer/bg.png +0 -0
- assets/js/frontend-form.js +0 -0
- assets/js/frontend-form.min.js +0 -0
- assets/js/upload.js +0 -0
- assets/js/upload.min.js +0 -0
- class/frontend-form-post.php +0 -0
- class/render-form.php +0 -0
- class/subscription.php +0 -0
- class/upload.php +0 -0
- includes/free/post-form-templates/woocommerce.php +28 -23
- languages/wp-user-frontend.pot +2 -2
- lib/recaptchalib_noCaptcha.php +1 -1
- readme.txt +5 -1
- templates/dashboard.php +0 -0
- wpuf.php +2 -2
admin/html/whats-new.php
CHANGED
@@ -1,5 +1,16 @@
|
|
1 |
<?php
|
2 |
$changelog = array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
array(
|
4 |
'version' => 'Version 2.9.0',
|
5 |
'released' => '2018-08-14',
|
1 |
<?php
|
2 |
$changelog = array(
|
3 |
+
array(
|
4 |
+
'version' => 'Version 2.9.4',
|
5 |
+
'released' => '2018-11-20',
|
6 |
+
'changes' => array(
|
7 |
+
array(
|
8 |
+
'title' => __( 'WooCommerce gallery images not getting saved', 'wp-user-frontend' ),
|
9 |
+
'type' => 'Fix',
|
10 |
+
'description' => __( 'After releasing version 2.9.3, WooCommerce gallery image field stopped working. You will get it fixed in this version.', 'wp-user-frontend' )
|
11 |
+
),
|
12 |
+
)
|
13 |
+
),
|
14 |
array(
|
15 |
'version' => 'Version 2.9.0',
|
16 |
'released' => '2018-08-14',
|
admin/posting.php
CHANGED
File without changes
|
admin/promotion.php
CHANGED
@@ -24,7 +24,7 @@ class WPUF_Admin_Promotion {
|
|
24 |
}
|
25 |
|
26 |
// 2018-03-26 23:59:00
|
27 |
-
if ( time() >
|
28 |
return;
|
29 |
}
|
30 |
|
@@ -38,14 +38,12 @@ class WPUF_Admin_Promotion {
|
|
38 |
// $product_text = ( wpuf()->is_pro() ) ? __( 'Pro upgrade and all extensions, ', 'wpuf' ) : __( 'all extensions, ', 'wpuf' );
|
39 |
|
40 |
// $offer_msg = __( '<h2><span class="dashicons dashicons-awards"></span> weDevs 5th Birthday Offer</h2>', 'wpuf' );
|
41 |
-
$offer_msg =
|
42 |
-
<strong class="highlight-text" style="font-size: 18px">
|
43 |
-
|
44 |
-
Get 25% Discount with coupon:
|
45 |
-
<a target="_blank" href="%1$s"><strong> we25 </strong></a>
|
46 |
<br>
|
47 |
Offer ending soon!
|
48 |
-
</p>', 'wp-user-frontend' )
|
49 |
|
50 |
?>
|
51 |
<div class="notice is-dismissible" id="wpuf-promotional-offer-notice">
|
@@ -63,12 +61,13 @@ class WPUF_Admin_Promotion {
|
|
63 |
</table>
|
64 |
|
65 |
<span class="dashicons dashicons-megaphone"></span>
|
66 |
-
<a href="https://wedevs.com/
|
67 |
</div><!-- #wpuf-promotional-offer-notice -->
|
68 |
|
69 |
<style>
|
70 |
#wpuf-promotional-offer-notice {
|
71 |
-
background-
|
|
|
72 |
border: 0px;
|
73 |
padding: 0;
|
74 |
opacity: 0;
|
24 |
}
|
25 |
|
26 |
// 2018-03-26 23:59:00
|
27 |
+
if ( time() > 1543276740 ) {
|
28 |
return;
|
29 |
}
|
30 |
|
38 |
// $product_text = ( wpuf()->is_pro() ) ? __( 'Pro upgrade and all extensions, ', 'wpuf' ) : __( 'all extensions, ', 'wpuf' );
|
39 |
|
40 |
// $offer_msg = __( '<h2><span class="dashicons dashicons-awards"></span> weDevs 5th Birthday Offer</h2>', 'wpuf' );
|
41 |
+
$offer_msg = __( '<p>
|
42 |
+
<strong class="highlight-text" style="font-size: 18px">33% flat discount on all our products</strong><br>
|
43 |
+
Save money this holiday season while supercharging your WordPress site with plugins that were made to empower you.
|
|
|
|
|
44 |
<br>
|
45 |
Offer ending soon!
|
46 |
+
</p>', 'wp-user-frontend' );
|
47 |
|
48 |
?>
|
49 |
<div class="notice is-dismissible" id="wpuf-promotional-offer-notice">
|
61 |
</table>
|
62 |
|
63 |
<span class="dashicons dashicons-megaphone"></span>
|
64 |
+
<a href="https://wedevs.com/coupons/?utm_campaign=black_friday_cyber_monday&utm_medium=banner&utm_source=inside_plugin" class="button button-primary promo-btn" target="_blank"><?php _e( 'Get the Offer', 'wp-user-frontend' ); ?></a>
|
65 |
</div><!-- #wpuf-promotional-offer-notice -->
|
66 |
|
67 |
<style>
|
68 |
#wpuf-promotional-offer-notice {
|
69 |
+
background-image: url("<?php echo WPUF_ASSET_URI . '/images/promotional-offer/bg.png' ?>");
|
70 |
+
background-size: cover;
|
71 |
border: 0px;
|
72 |
padding: 0;
|
73 |
opacity: 0;
|
assets/css/frontend-forms.css
CHANGED
File without changes
|
assets/images/promotional-offer/bg.png
ADDED
Binary file
|
assets/js/frontend-form.js
CHANGED
File without changes
|
assets/js/frontend-form.min.js
CHANGED
File without changes
|
assets/js/upload.js
CHANGED
File without changes
|
assets/js/upload.min.js
CHANGED
File without changes
|
class/frontend-form-post.php
CHANGED
File without changes
|
class/render-form.php
CHANGED
File without changes
|
class/subscription.php
CHANGED
File without changes
|
class/upload.php
CHANGED
File without changes
|
includes/free/post-form-templates/woocommerce.php
CHANGED
@@ -96,30 +96,32 @@ class WPUF_Post_Form_Template_WooCommerce extends WPUF_Post_Form_Template {
|
|
96 |
'wpuf_cond' => $this->conditionals
|
97 |
),
|
98 |
array(
|
99 |
-
'input_type'
|
100 |
-
'template'
|
101 |
-
'count'
|
102 |
-
'required'
|
103 |
-
'label'
|
104 |
-
'
|
105 |
-
'
|
106 |
-
'
|
107 |
-
'
|
108 |
-
'
|
109 |
-
'
|
|
|
110 |
),
|
111 |
array(
|
112 |
-
'input_type'
|
113 |
-
'template'
|
114 |
-
'required'
|
115 |
-
'label'
|
116 |
-
'
|
117 |
-
'
|
118 |
-
'
|
119 |
-
'
|
120 |
-
'
|
121 |
-
'
|
122 |
-
'
|
|
|
123 |
),
|
124 |
array(
|
125 |
'input_type' => 'select',
|
@@ -308,7 +310,10 @@ Edit URL: %editlink%',
|
|
308 |
public function update_gallery_images( $post_id ) {
|
309 |
$images = get_post_meta( $post_id, '_product_image' );
|
310 |
if ( !empty( $images ) ) {
|
311 |
-
|
|
|
|
|
|
|
312 |
}
|
313 |
}
|
314 |
|
96 |
'wpuf_cond' => $this->conditionals
|
97 |
),
|
98 |
array(
|
99 |
+
'input_type' => 'image_upload',
|
100 |
+
'template' => 'featured_image',
|
101 |
+
'count' => '1',
|
102 |
+
'required' => 'yes',
|
103 |
+
'label' => 'Product Image',
|
104 |
+
'button_label' => 'Product Image',
|
105 |
+
'name' => 'featured_image',
|
106 |
+
'is_meta' => 'no',
|
107 |
+
'help' => 'Upload the main image of your product',
|
108 |
+
'css' => '',
|
109 |
+
'max_size' => '1024',
|
110 |
+
'wpuf_cond' => $this->conditionals
|
111 |
),
|
112 |
array(
|
113 |
+
'input_type' => 'image_upload',
|
114 |
+
'template' => 'image_upload',
|
115 |
+
'required' => 'no',
|
116 |
+
'label' => 'Product Image Gallery',
|
117 |
+
'button_label' => 'Product Image Gallery',
|
118 |
+
'name' => '_product_image',
|
119 |
+
'is_meta' => 'yes',
|
120 |
+
'help' => 'Upload additional pictures of your product and will be shown as image gallery',
|
121 |
+
'css' => '',
|
122 |
+
'max_size' => '1024',
|
123 |
+
'count' => '5',
|
124 |
+
'wpuf_cond' => $this->conditionals
|
125 |
),
|
126 |
array(
|
127 |
'input_type' => 'select',
|
310 |
public function update_gallery_images( $post_id ) {
|
311 |
$images = get_post_meta( $post_id, '_product_image' );
|
312 |
if ( !empty( $images ) ) {
|
313 |
+
if ( is_array( $images ) ) {
|
314 |
+
$images = maybe_unserialize( $images[0] );
|
315 |
+
}
|
316 |
+
update_post_meta( $post_id, '_product_image_gallery', implode( ',', $images ) );
|
317 |
}
|
318 |
}
|
319 |
|
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 2.9.
|
6 |
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
|
7 |
-
"POT-Creation-Date: 2018-11-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the GPL2 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WP User Frontend 2.9.4\n"
|
6 |
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
|
7 |
+
"POT-Creation-Date: 2018-11-20 09:34:11+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
lib/recaptchalib_noCaptcha.php
CHANGED
@@ -160,7 +160,7 @@ class WPUF_ReCaptcha
|
|
160 |
$recaptchaResponse->success = true;
|
161 |
} else {
|
162 |
$recaptchaResponse->success = false;
|
163 |
-
$recaptchaResponse->errorCodes = $answers [error-codes];
|
164 |
}
|
165 |
|
166 |
return $recaptchaResponse;
|
160 |
$recaptchaResponse->success = true;
|
161 |
} else {
|
162 |
$recaptchaResponse->success = false;
|
163 |
+
$recaptchaResponse->errorCodes = $answers ['error-codes'];
|
164 |
}
|
165 |
|
166 |
return $recaptchaResponse;
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: Forms, registration, profile-builder, login, membership
|
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.9.8
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 2.9.
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -230,6 +230,10 @@ redirected to the edit page with that post id. Then you'll see the edit post for
|
|
230 |
|
231 |
== Changelog ==
|
232 |
|
|
|
|
|
|
|
|
|
233 |
= v2.9.3 (02 November, 2018) =
|
234 |
|
235 |
* **Fix:** NoCaptcha reCaptcha compatibility issue
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.9.8
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 2.9.4
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
230 |
|
231 |
== Changelog ==
|
232 |
|
233 |
+
= v2.9.4 (20 November, 2018) =
|
234 |
+
|
235 |
+
* **Fix:** WooCommerce Gallery images not getting saved
|
236 |
+
|
237 |
= v2.9.3 (02 November, 2018) =
|
238 |
|
239 |
* **Fix:** NoCaptcha reCaptcha compatibility issue
|
templates/dashboard.php
CHANGED
File without changes
|
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: 2.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,7 +12,7 @@ Text Domain: wp-user-frontend
|
|
12 |
Domain Path: /languages
|
13 |
*/
|
14 |
|
15 |
-
define( 'WPUF_VERSION', '2.9.
|
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: 2.9.4
|
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', '2.9.4' );
|
16 |
define( 'WPUF_FILE', __FILE__ );
|
17 |
define( 'WPUF_ROOT', dirname( __FILE__ ) );
|
18 |
define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
|