Version Description
Download this release
Release Info
Developer | rabbii |
Plugin | WP User Frontend – Membership, Profile, Registration & Post Submission Plugin for WordPress |
Version | 3.1.1 |
Comparing to | |
See all releases |
Code changes from version 3.1.0 to 3.1.1
- includes/class-frontend-form-post.php +11 -7
- includes/class-frontend-render-form.php +1 -1
- includes/fields/class-field-checkbox.php +9 -2
- includes/fields/class-field-image.php +4 -1
- includes/fields/class-field-post-taxonomy.php +13 -15
- languages/wp-user-frontend.pot +35 -35
- readme.txt +12 -2
- wpuf.php +2 -6
includes/class-frontend-form-post.php
CHANGED
@@ -2,8 +2,6 @@
|
|
2 |
|
3 |
class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form{
|
4 |
|
5 |
-
|
6 |
-
|
7 |
private static $_instance;
|
8 |
private $post_expiration_date = 'wpuf-post_expiration_date';
|
9 |
private $expired_post_status = 'wpuf-expired_post_status';
|
@@ -308,7 +306,7 @@ class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form{
|
|
308 |
if ( isset( $_POST['wpuf_is_publish_time'] ) ) {
|
309 |
if ( isset( $_POST[$_POST['wpuf_is_publish_time']] ) && !empty( $_POST[$_POST['wpuf_is_publish_time']] ) ) {
|
310 |
// $postarr['post_date'] = date( 'Y-m-d H:i:s', strtotime( str_replace( array( ':', '/' ), '-', $_POST[$_POST['wpuf_is_publish_time']] ) ) );
|
311 |
-
$date_time = explode(" ", $_POST[$_POST['wpuf_is_publish_time']] );
|
312 |
if ( !empty ( $date_time[0] ) ) {
|
313 |
$timestamp = strtotime( str_replace( array( '/' ), '-', $date_time[0] ) );
|
314 |
}
|
@@ -411,7 +409,7 @@ class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form{
|
|
411 |
// set the post form_id for later usage
|
412 |
update_post_meta( $post_id, self::$config_id, $form_id );
|
413 |
// if user has a subscription pack
|
414 |
-
$this->wpuf_user_subscription_pack($this->form_settings);
|
415 |
// set the post form_id for later usage
|
416 |
update_post_meta( $post_id, self::$config_id, $form_id );
|
417 |
|
@@ -615,13 +613,19 @@ class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form{
|
|
615 |
// delete any previous value
|
616 |
delete_post_meta( $post_id, $file_input['name'] );
|
617 |
|
|
|
|
|
618 |
if ( count( $file_input['value'] ) > 1 ) {
|
619 |
$image_ids = maybe_serialize( $file_input['value'] );
|
620 |
-
}
|
|
|
|
|
621 |
$image_ids = $file_input['value'][0];
|
622 |
}
|
623 |
|
624 |
-
|
|
|
|
|
625 |
|
626 |
//to track how many files are being uploaded
|
627 |
$file_numbers = 0;
|
@@ -787,7 +791,7 @@ class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form{
|
|
787 |
}
|
788 |
}
|
789 |
|
790 |
-
function wpuf_user_subscription_pack($form_settings) {
|
791 |
|
792 |
// if user has a subscription pack
|
793 |
$user_wpuf_subscription_pack = get_user_meta( get_current_user_id(), '_wpuf_subscription_pack', true );
|
2 |
|
3 |
class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form{
|
4 |
|
|
|
|
|
5 |
private static $_instance;
|
6 |
private $post_expiration_date = 'wpuf-post_expiration_date';
|
7 |
private $expired_post_status = 'wpuf-expired_post_status';
|
306 |
if ( isset( $_POST['wpuf_is_publish_time'] ) ) {
|
307 |
if ( isset( $_POST[$_POST['wpuf_is_publish_time']] ) && !empty( $_POST[$_POST['wpuf_is_publish_time']] ) ) {
|
308 |
// $postarr['post_date'] = date( 'Y-m-d H:i:s', strtotime( str_replace( array( ':', '/' ), '-', $_POST[$_POST['wpuf_is_publish_time']] ) ) );
|
309 |
+
$date_time = explode(" ", trim($_POST[$_POST['wpuf_is_publish_time']]) );
|
310 |
if ( !empty ( $date_time[0] ) ) {
|
311 |
$timestamp = strtotime( str_replace( array( '/' ), '-', $date_time[0] ) );
|
312 |
}
|
409 |
// set the post form_id for later usage
|
410 |
update_post_meta( $post_id, self::$config_id, $form_id );
|
411 |
// if user has a subscription pack
|
412 |
+
$this->wpuf_user_subscription_pack( $this->form_settings, $post_id );
|
413 |
// set the post form_id for later usage
|
414 |
update_post_meta( $post_id, self::$config_id, $form_id );
|
415 |
|
613 |
// delete any previous value
|
614 |
delete_post_meta( $post_id, $file_input['name'] );
|
615 |
|
616 |
+
$image_ids = '';
|
617 |
+
|
618 |
if ( count( $file_input['value'] ) > 1 ) {
|
619 |
$image_ids = maybe_serialize( $file_input['value'] );
|
620 |
+
}
|
621 |
+
|
622 |
+
if ( count( $file_input['value'] ) == 1 ) {
|
623 |
$image_ids = $file_input['value'][0];
|
624 |
}
|
625 |
|
626 |
+
if ( !empty( $image_ids ) ) {
|
627 |
+
add_post_meta( $post_id, $file_input['name'], $image_ids );
|
628 |
+
}
|
629 |
|
630 |
//to track how many files are being uploaded
|
631 |
$file_numbers = 0;
|
791 |
}
|
792 |
}
|
793 |
|
794 |
+
function wpuf_user_subscription_pack( $form_settings, $post_id=null ) {
|
795 |
|
796 |
// if user has a subscription pack
|
797 |
$user_wpuf_subscription_pack = get_user_meta( get_current_user_id(), '_wpuf_subscription_pack', true );
|
includes/class-frontend-render-form.php
CHANGED
@@ -696,7 +696,7 @@ class WPUF_Frontend_Render_Form{
|
|
696 |
if ( $value['input_type'] == 'address' ) {
|
697 |
$meta_key_value[$value['name']] = $_POST[$value['name']];
|
698 |
} elseif ( !empty( $acf_compatibility ) && $acf_compatibility == 'yes' ) {
|
699 |
-
$meta_key_value[$value['name']] =
|
700 |
} else {
|
701 |
$meta_key_value[$value['name']] = implode( self::$separator, $_POST[$value['name']] );
|
702 |
}
|
696 |
if ( $value['input_type'] == 'address' ) {
|
697 |
$meta_key_value[$value['name']] = $_POST[$value['name']];
|
698 |
} elseif ( !empty( $acf_compatibility ) && $acf_compatibility == 'yes' ) {
|
699 |
+
$meta_key_value[$value['name']] = $_POST[$value['name']];
|
700 |
} else {
|
701 |
$meta_key_value[$value['name']] = implode( self::$separator, $_POST[$value['name']] );
|
702 |
}
|
includes/fields/class-field-checkbox.php
CHANGED
@@ -25,8 +25,15 @@ class WPUF_Form_Field_Checkbox extends WPUF_Field_Contract {
|
|
25 |
|
26 |
if ( isset($post_id) && $post_id != '0' ) {
|
27 |
if ( $this->is_meta( $field_settings ) ) {
|
28 |
-
$
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
}
|
31 |
}else{
|
32 |
$selected = !empty( $field_settings['selected'] ) ? $field_settings['selected'] : array();
|
25 |
|
26 |
if ( isset($post_id) && $post_id != '0' ) {
|
27 |
if ( $this->is_meta( $field_settings ) ) {
|
28 |
+
if ( $value = $this->get_meta( $post_id, $field_settings['name'], $type, true ) ) {
|
29 |
+
if ( is_serialized( $value ) ) {
|
30 |
+
$selected = maybe_unserialize( $value );
|
31 |
+
} elseif ( is_array( $value ) ) {
|
32 |
+
$selected = $value;
|
33 |
+
} else {
|
34 |
+
$selected = explode( "|", $value );
|
35 |
+
}
|
36 |
+
}
|
37 |
}
|
38 |
}else{
|
39 |
$selected = !empty( $field_settings['selected'] ) ? $field_settings['selected'] : array();
|
includes/fields/class-field-image.php
CHANGED
@@ -50,13 +50,16 @@ class WPUF_Form_Field_Image extends WPUF_Field_Contract {
|
|
50 |
|
51 |
|
52 |
$this->field_print_label($field_settings, $form_id );
|
|
|
|
|
|
|
53 |
|
54 |
?>
|
55 |
|
56 |
<div class="wpuf-fields">
|
57 |
<div id="wpuf-<?php echo $unique_id; ?>-upload-container">
|
58 |
<div class="wpuf-attachment-upload-filelist" data-type="file" data-required="<?php echo $field_settings['required']; ?>">
|
59 |
-
<a id="wpuf-<?php echo $unique_id; ?>-pickfiles" data-form_id="<?php echo $form_id; ?>" class="button file-selector <?php echo ' wpuf_' . $field_settings['name'] . '_' . $form_id; ?>" href="#"><?php echo $
|
60 |
|
61 |
<ul class="wpuf-attachment-list thumbnails">
|
62 |
|
50 |
|
51 |
|
52 |
$this->field_print_label($field_settings, $form_id );
|
53 |
+
|
54 |
+
// Check for the existance of 'button_label' and fallback to label if it is not found
|
55 |
+
$label = array_key_exists( 'button_label', $field_settings ) ? $field_settings['button_label'] : $field_settings['label'];
|
56 |
|
57 |
?>
|
58 |
|
59 |
<div class="wpuf-fields">
|
60 |
<div id="wpuf-<?php echo $unique_id; ?>-upload-container">
|
61 |
<div class="wpuf-attachment-upload-filelist" data-type="file" data-required="<?php echo $field_settings['required']; ?>">
|
62 |
+
<a id="wpuf-<?php echo $unique_id; ?>-pickfiles" data-form_id="<?php echo $form_id; ?>" class="button file-selector <?php echo ' wpuf_' . $field_settings['name'] . '_' . $form_id; ?>" href="#"><?php echo $label; ?></a>
|
63 |
|
64 |
<ul class="wpuf-attachment-list thumbnails">
|
65 |
|
includes/fields/class-field-post-taxonomy.php
CHANGED
@@ -51,8 +51,7 @@ class WPUF_Form_Field_Post_Taxonomy extends WPUF_Field_Contract {
|
|
51 |
$this->exclude_type = isset( $this->field_settings['exclude_type'] ) ? $this->field_settings['exclude_type'] : 'exclude';
|
52 |
|
53 |
$this->exclude = $this->field_settings['exclude'];
|
54 |
-
|
55 |
-
if ( $this->exclude_type == 'child_of' ) {
|
56 |
$this->exclude = $this->exclude[0];
|
57 |
}
|
58 |
|
@@ -101,7 +100,9 @@ class WPUF_Form_Field_Post_Taxonomy extends WPUF_Field_Contract {
|
|
101 |
# code...
|
102 |
break;
|
103 |
|
104 |
-
}
|
|
|
|
|
105 |
|
106 |
}
|
107 |
|
@@ -116,10 +117,9 @@ class WPUF_Form_Field_Post_Taxonomy extends WPUF_Field_Contract {
|
|
116 |
// $exclude_type = isset( $attr['exclude_type'] ) ? $attr['exclude_type'] : 'exclude';
|
117 |
// $exclude = $attr['exclude'];
|
118 |
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
$tax_args = array(
|
124 |
'show_option_none' => __( '-- Select --', 'wp-user-frontend' ),
|
125 |
'hierarchical' => 1,
|
@@ -153,12 +153,12 @@ class WPUF_Form_Field_Post_Taxonomy extends WPUF_Field_Contract {
|
|
153 |
'orderby' => $attr['orderby'],
|
154 |
'order' => $attr['order'],
|
155 |
'name' => $attr['name'],
|
156 |
-
|
157 |
//'term_id' => $selected
|
158 |
);
|
159 |
$attr = apply_filters( 'wpuf_taxonomy_checklist_args', $attr );
|
160 |
?>
|
161 |
-
<span data-taxonomy=<?php
|
162 |
<?php
|
163 |
}
|
164 |
|
@@ -181,21 +181,19 @@ class WPUF_Form_Field_Post_Taxonomy extends WPUF_Field_Contract {
|
|
181 |
} else {
|
182 |
|
183 |
$level = 0;
|
184 |
-
asort( $terms );
|
185 |
-
$last_term_id = end( $terms );
|
186 |
-
|
187 |
-
foreach( $terms as $term_id) {
|
188 |
$class = ( $last_term_id != $term_id ) ? 'hasChild' : '';
|
189 |
?>
|
190 |
<div id="lvl<?php echo $level; ?>" level="<?php echo $level; ?>" >
|
191 |
<?php $this->taxnomy_select( $term_id); ?>
|
192 |
</div>
|
193 |
<?php
|
194 |
-
$
|
195 |
$level++;
|
196 |
}
|
197 |
}
|
198 |
-
|
199 |
?>
|
200 |
</div>
|
201 |
<span class="loading"></span>
|
51 |
$this->exclude_type = isset( $this->field_settings['exclude_type'] ) ? $this->field_settings['exclude_type'] : 'exclude';
|
52 |
|
53 |
$this->exclude = $this->field_settings['exclude'];
|
54 |
+
if ( $this->exclude_type == 'child_of' && !empty( $this->exclude ) ) {
|
|
|
55 |
$this->exclude = $this->exclude[0];
|
56 |
}
|
57 |
|
100 |
# code...
|
101 |
break;
|
102 |
|
103 |
+
} ?>
|
104 |
+
<span class="wpuf-wordlimit-message wpuf-help"></span>
|
105 |
+
<?php $this->help_text( $field_settings );
|
106 |
|
107 |
}
|
108 |
|
117 |
// $exclude_type = isset( $attr['exclude_type'] ) ? $attr['exclude_type'] : 'exclude';
|
118 |
// $exclude = $attr['exclude'];
|
119 |
|
120 |
+
if ( $this->exclude_type == 'child_of' && !empty( $this->exclude ) ) {
|
121 |
+
$this->exclude = $this->exclude[0];
|
122 |
+
}
|
|
|
123 |
$tax_args = array(
|
124 |
'show_option_none' => __( '-- Select --', 'wp-user-frontend' ),
|
125 |
'hierarchical' => 1,
|
153 |
'orderby' => $attr['orderby'],
|
154 |
'order' => $attr['order'],
|
155 |
'name' => $attr['name'],
|
156 |
+
// 'last_term_id' => isset( $attr['parent_cat'] ) ? $attr['parent_cat'] : '',
|
157 |
//'term_id' => $selected
|
158 |
);
|
159 |
$attr = apply_filters( 'wpuf_taxonomy_checklist_args', $attr );
|
160 |
?>
|
161 |
+
<span data-taxonomy=<?php echo json_encode( $attr ); ?>></span>
|
162 |
<?php
|
163 |
}
|
164 |
|
181 |
} else {
|
182 |
|
183 |
$level = 0;
|
184 |
+
asort( $this->terms );
|
185 |
+
$last_term_id = end( $this->terms );
|
186 |
+
foreach( $this->terms as $term_id) {
|
|
|
187 |
$class = ( $last_term_id != $term_id ) ? 'hasChild' : '';
|
188 |
?>
|
189 |
<div id="lvl<?php echo $level; ?>" level="<?php echo $level; ?>" >
|
190 |
<?php $this->taxnomy_select( $term_id); ?>
|
191 |
</div>
|
192 |
<?php
|
193 |
+
$this->field_settings['parent_cat'] = $term_id;
|
194 |
$level++;
|
195 |
}
|
196 |
}
|
|
|
197 |
?>
|
198 |
</div>
|
199 |
<span class="loading"></span>
|
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"
|
@@ -156,7 +156,7 @@ msgstr ""
|
|
156 |
#: includes/fields/class-abstract-fields.php:344
|
157 |
#: includes/fields/class-abstract-fields.php:358
|
158 |
#: includes/fields/class-abstract-fields.php:426
|
159 |
-
#: includes/fields/class-field-checkbox.php:
|
160 |
#: includes/fields/class-field-radio.php:86 includes/free/form-element.php:477
|
161 |
#: wpuf.php:706
|
162 |
msgid "Yes"
|
@@ -171,7 +171,7 @@ msgstr ""
|
|
171 |
#: includes/fields/class-abstract-fields.php:345
|
172 |
#: includes/fields/class-abstract-fields.php:359
|
173 |
#: includes/fields/class-abstract-fields.php:427
|
174 |
-
#: includes/fields/class-field-checkbox.php:
|
175 |
#: includes/fields/class-field-radio.php:87 includes/free/form-element.php:478
|
176 |
#: wpuf.php:707
|
177 |
msgid "No"
|
@@ -522,8 +522,8 @@ msgstr ""
|
|
522 |
#: admin/form-builder/assets/js/components/form-image_upload/template.php:6
|
523 |
#: class/render-form.php:1680
|
524 |
#: includes/fields/class-field-featured-image.php:103
|
525 |
-
#: includes/fields/class-field-image.php:
|
526 |
-
#: includes/fields/class-field-image.php:
|
527 |
msgid "Select Image"
|
528 |
msgstr ""
|
529 |
|
@@ -576,7 +576,7 @@ msgid "This field must contain at least one choice"
|
|
576 |
msgstr ""
|
577 |
|
578 |
#: admin/form-builder/class-wpuf-admin-form-builder.php:268
|
579 |
-
#: includes/fields/class-field-checkbox.php:
|
580 |
#: includes/fields/class-field-dropdown.php:101
|
581 |
#: includes/fields/class-field-multidropdown.php:93
|
582 |
#: includes/fields/class-field-radio.php:114
|
@@ -2961,13 +2961,13 @@ msgstr ""
|
|
2961 |
|
2962 |
#: admin/template-post.php:93 admin/template.php:634
|
2963 |
#: includes/fields/class-field-featured-image.php:97
|
2964 |
-
#: includes/fields/class-field-image.php:
|
2965 |
msgid "Enter maximum upload size limit in KB"
|
2966 |
msgstr ""
|
2967 |
|
2968 |
#: admin/template-post.php:105 admin/template.php:646
|
2969 |
#: includes/fields/class-field-featured-image.php:93
|
2970 |
-
#: includes/fields/class-field-image.php:
|
2971 |
msgid "Max. file size"
|
2972 |
msgstr ""
|
2973 |
|
@@ -3277,11 +3277,11 @@ msgstr ""
|
|
3277 |
msgid "Description"
|
3278 |
msgstr ""
|
3279 |
|
3280 |
-
#: admin/template.php:635 includes/fields/class-field-image.php:
|
3281 |
msgid "Number of images can be uploaded"
|
3282 |
msgstr ""
|
3283 |
|
3284 |
-
#: admin/template.php:651 includes/fields/class-field-image.php:
|
3285 |
msgid "Max. files"
|
3286 |
msgstr ""
|
3287 |
|
@@ -3444,41 +3444,41 @@ msgstr ""
|
|
3444 |
msgid "Payment type not selected for this form. Please contact admin."
|
3445 |
msgstr ""
|
3446 |
|
3447 |
-
#: class/frontend-form-post.php:171 includes/class-frontend-form-post.php:
|
3448 |
msgid "You are not logged in"
|
3449 |
msgstr ""
|
3450 |
|
3451 |
#: class/frontend-form-post.php:179 class/frontend-form-post.php:208
|
3452 |
-
#: includes/class-frontend-form-post.php:
|
3453 |
-
#: includes/class-frontend-form-post.php:
|
3454 |
msgid "Invalid post"
|
3455 |
msgstr ""
|
3456 |
|
3457 |
-
#: class/frontend-form-post.php:186 includes/class-frontend-form-post.php:
|
3458 |
msgid "Your edit access for this post has been locked by an administrator."
|
3459 |
msgstr ""
|
3460 |
|
3461 |
-
#: class/frontend-form-post.php:190 includes/class-frontend-form-post.php:
|
3462 |
msgid "Your allocated time for editing this post has been expired."
|
3463 |
msgstr ""
|
3464 |
|
3465 |
-
#: class/frontend-form-post.php:197 includes/class-frontend-form-post.php:
|
3466 |
msgid "Your post edit access has been locked by an administrator."
|
3467 |
msgstr ""
|
3468 |
|
3469 |
-
#: class/frontend-form-post.php:202 includes/class-frontend-form-post.php:
|
3470 |
msgid "Post Editing is disabled"
|
3471 |
msgstr ""
|
3472 |
|
3473 |
-
#: class/frontend-form-post.php:213 includes/class-frontend-form-post.php:
|
3474 |
msgid "You are not allowed to edit"
|
3475 |
msgstr ""
|
3476 |
|
3477 |
-
#: class/frontend-form-post.php:225 includes/class-frontend-form-post.php:
|
3478 |
msgid "I don't know how to edit this post, I don't have the form ID"
|
3479 |
msgstr ""
|
3480 |
|
3481 |
-
#: class/frontend-form-post.php:231 includes/class-frontend-form-post.php:
|
3482 |
msgid "You can't edit a post while in pending mode."
|
3483 |
msgstr ""
|
3484 |
|
@@ -3487,11 +3487,11 @@ msgstr ""
|
|
3487 |
msgid "Empty reCaptcha Field"
|
3488 |
msgstr ""
|
3489 |
|
3490 |
-
#: class/frontend-form-post.php:335 includes/class-frontend-form-post.php:
|
3491 |
msgid "Invalid email address."
|
3492 |
msgstr ""
|
3493 |
|
3494 |
-
#: class/frontend-form-post.php:344 includes/class-frontend-form-post.php:
|
3495 |
msgid ""
|
3496 |
"You already have an account in our site. Please login to continue.\n"
|
3497 |
"\n"
|
@@ -3500,23 +3500,23 @@ msgid ""
|
|
3500 |
"Click 'Cancel' to stay at this page."
|
3501 |
msgstr ""
|
3502 |
|
3503 |
-
#: class/frontend-form-post.php:393 includes/class-frontend-form-post.php:
|
3504 |
msgid "You do not have sufficient permissions to access this form."
|
3505 |
msgstr ""
|
3506 |
|
3507 |
#: class/frontend-form-post.php:732 class/frontend-form-post.php:739
|
3508 |
-
#: includes/class-frontend-form-post.php:
|
3509 |
-
#: includes/class-frontend-form-post.php:
|
3510 |
msgid ""
|
3511 |
"Thank you for posting on our site. We have sent you an confirmation email. "
|
3512 |
"Please check your inbox!"
|
3513 |
msgstr ""
|
3514 |
|
3515 |
-
#: class/frontend-form-post.php:792 includes/class-frontend-form-post.php:
|
3516 |
msgid "Something went wrong"
|
3517 |
msgstr ""
|
3518 |
|
3519 |
-
#: class/frontend-form-post.php:1170 includes/class-frontend-form-post.php:
|
3520 |
msgid "Email successfully verified. Please Login."
|
3521 |
msgstr ""
|
3522 |
|
@@ -3627,7 +3627,7 @@ msgstr ""
|
|
3627 |
#: includes/fields/class-abstract-fields.php:196
|
3628 |
#: includes/fields/class-field-dropdown.php:102
|
3629 |
#: includes/fields/class-field-multidropdown.php:94
|
3630 |
-
#: includes/fields/class-field-post-taxonomy.php:
|
3631 |
msgid "- select -"
|
3632 |
msgstr ""
|
3633 |
|
@@ -3724,7 +3724,7 @@ msgstr ""
|
|
3724 |
msgid "-- Select --"
|
3725 |
msgstr ""
|
3726 |
|
3727 |
-
#: class/render-form.php:1485 includes/fields/class-field-post-taxonomy.php:
|
3728 |
msgid "This field is no longer available."
|
3729 |
msgstr ""
|
3730 |
|
@@ -4709,13 +4709,13 @@ msgid "Select Yes if you want to hide the field label in single post."
|
|
4709 |
msgstr ""
|
4710 |
|
4711 |
#: includes/fields/class-abstract-fields.php:423
|
4712 |
-
#: includes/fields/class-field-checkbox.php:
|
4713 |
#: includes/fields/class-field-radio.php:83
|
4714 |
msgid "Show in inline list"
|
4715 |
msgstr ""
|
4716 |
|
4717 |
#: includes/fields/class-abstract-fields.php:433
|
4718 |
-
#: includes/fields/class-field-checkbox.php:
|
4719 |
#: includes/fields/class-field-radio.php:93
|
4720 |
msgid "Show this option in an inline list"
|
4721 |
msgstr ""
|
@@ -4741,12 +4741,12 @@ msgid "Email Address"
|
|
4741 |
msgstr ""
|
4742 |
|
4743 |
#: includes/fields/class-field-featured-image.php:101
|
4744 |
-
#: includes/fields/class-field-image.php:
|
4745 |
msgid "Button Label"
|
4746 |
msgstr ""
|
4747 |
|
4748 |
#: includes/fields/class-field-featured-image.php:106
|
4749 |
-
#: includes/fields/class-field-image.php:
|
4750 |
msgid "Enter a label for the Select button"
|
4751 |
msgstr ""
|
4752 |
|
@@ -6160,7 +6160,7 @@ msgstr ""
|
|
6160 |
msgid "Please Cancel Your Currently Active Pack first!"
|
6161 |
msgstr ""
|
6162 |
|
6163 |
-
#: wpuf.php:
|
6164 |
msgid "Error: Nonce verification failed"
|
6165 |
msgstr ""
|
6166 |
|
2 |
# This file is distributed under the GPL2 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WP User Frontend 3.1.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
|
7 |
+
"POT-Creation-Date: 2019-02-28 11:59:31+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
156 |
#: includes/fields/class-abstract-fields.php:344
|
157 |
#: includes/fields/class-abstract-fields.php:358
|
158 |
#: includes/fields/class-abstract-fields.php:426
|
159 |
+
#: includes/fields/class-field-checkbox.php:88
|
160 |
#: includes/fields/class-field-radio.php:86 includes/free/form-element.php:477
|
161 |
#: wpuf.php:706
|
162 |
msgid "Yes"
|
171 |
#: includes/fields/class-abstract-fields.php:345
|
172 |
#: includes/fields/class-abstract-fields.php:359
|
173 |
#: includes/fields/class-abstract-fields.php:427
|
174 |
+
#: includes/fields/class-field-checkbox.php:89
|
175 |
#: includes/fields/class-field-radio.php:87 includes/free/form-element.php:478
|
176 |
#: wpuf.php:707
|
177 |
msgid "No"
|
522 |
#: admin/form-builder/assets/js/components/form-image_upload/template.php:6
|
523 |
#: class/render-form.php:1680
|
524 |
#: includes/fields/class-field-featured-image.php:103
|
525 |
+
#: includes/fields/class-field-image.php:125
|
526 |
+
#: includes/fields/class-field-image.php:146
|
527 |
msgid "Select Image"
|
528 |
msgstr ""
|
529 |
|
576 |
msgstr ""
|
577 |
|
578 |
#: admin/form-builder/class-wpuf-admin-form-builder.php:268
|
579 |
+
#: includes/fields/class-field-checkbox.php:117
|
580 |
#: includes/fields/class-field-dropdown.php:101
|
581 |
#: includes/fields/class-field-multidropdown.php:93
|
582 |
#: includes/fields/class-field-radio.php:114
|
2961 |
|
2962 |
#: admin/template-post.php:93 admin/template.php:634
|
2963 |
#: includes/fields/class-field-featured-image.php:97
|
2964 |
+
#: includes/fields/class-field-image.php:110
|
2965 |
msgid "Enter maximum upload size limit in KB"
|
2966 |
msgstr ""
|
2967 |
|
2968 |
#: admin/template-post.php:105 admin/template.php:646
|
2969 |
#: includes/fields/class-field-featured-image.php:93
|
2970 |
+
#: includes/fields/class-field-image.php:106
|
2971 |
msgid "Max. file size"
|
2972 |
msgstr ""
|
2973 |
|
3277 |
msgid "Description"
|
3278 |
msgstr ""
|
3279 |
|
3280 |
+
#: admin/template.php:635 includes/fields/class-field-image.php:119
|
3281 |
msgid "Number of images can be uploaded"
|
3282 |
msgstr ""
|
3283 |
|
3284 |
+
#: admin/template.php:651 includes/fields/class-field-image.php:115
|
3285 |
msgid "Max. files"
|
3286 |
msgstr ""
|
3287 |
|
3444 |
msgid "Payment type not selected for this form. Please contact admin."
|
3445 |
msgstr ""
|
3446 |
|
3447 |
+
#: class/frontend-form-post.php:171 includes/class-frontend-form-post.php:39
|
3448 |
msgid "You are not logged in"
|
3449 |
msgstr ""
|
3450 |
|
3451 |
#: class/frontend-form-post.php:179 class/frontend-form-post.php:208
|
3452 |
+
#: includes/class-frontend-form-post.php:45
|
3453 |
+
#: includes/class-frontend-form-post.php:74
|
3454 |
msgid "Invalid post"
|
3455 |
msgstr ""
|
3456 |
|
3457 |
+
#: class/frontend-form-post.php:186 includes/class-frontend-form-post.php:52
|
3458 |
msgid "Your edit access for this post has been locked by an administrator."
|
3459 |
msgstr ""
|
3460 |
|
3461 |
+
#: class/frontend-form-post.php:190 includes/class-frontend-form-post.php:56
|
3462 |
msgid "Your allocated time for editing this post has been expired."
|
3463 |
msgstr ""
|
3464 |
|
3465 |
+
#: class/frontend-form-post.php:197 includes/class-frontend-form-post.php:63
|
3466 |
msgid "Your post edit access has been locked by an administrator."
|
3467 |
msgstr ""
|
3468 |
|
3469 |
+
#: class/frontend-form-post.php:202 includes/class-frontend-form-post.php:68
|
3470 |
msgid "Post Editing is disabled"
|
3471 |
msgstr ""
|
3472 |
|
3473 |
+
#: class/frontend-form-post.php:213 includes/class-frontend-form-post.php:79
|
3474 |
msgid "You are not allowed to edit"
|
3475 |
msgstr ""
|
3476 |
|
3477 |
+
#: class/frontend-form-post.php:225 includes/class-frontend-form-post.php:90
|
3478 |
msgid "I don't know how to edit this post, I don't have the form ID"
|
3479 |
msgstr ""
|
3480 |
|
3481 |
+
#: class/frontend-form-post.php:231 includes/class-frontend-form-post.php:102
|
3482 |
msgid "You can't edit a post while in pending mode."
|
3483 |
msgstr ""
|
3484 |
|
3487 |
msgid "Empty reCaptcha Field"
|
3488 |
msgstr ""
|
3489 |
|
3490 |
+
#: class/frontend-form-post.php:335 includes/class-frontend-form-post.php:465
|
3491 |
msgid "Invalid email address."
|
3492 |
msgstr ""
|
3493 |
|
3494 |
+
#: class/frontend-form-post.php:344 includes/class-frontend-form-post.php:475
|
3495 |
msgid ""
|
3496 |
"You already have an account in our site. Please login to continue.\n"
|
3497 |
"\n"
|
3500 |
"Click 'Cancel' to stay at this page."
|
3501 |
msgstr ""
|
3502 |
|
3503 |
+
#: class/frontend-form-post.php:393 includes/class-frontend-form-post.php:531
|
3504 |
msgid "You do not have sufficient permissions to access this form."
|
3505 |
msgstr ""
|
3506 |
|
3507 |
#: class/frontend-form-post.php:732 class/frontend-form-post.php:739
|
3508 |
+
#: includes/class-frontend-form-post.php:893
|
3509 |
+
#: includes/class-frontend-form-post.php:899
|
3510 |
msgid ""
|
3511 |
"Thank you for posting on our site. We have sent you an confirmation email. "
|
3512 |
"Please check your inbox!"
|
3513 |
msgstr ""
|
3514 |
|
3515 |
+
#: class/frontend-form-post.php:792 includes/class-frontend-form-post.php:449
|
3516 |
msgid "Something went wrong"
|
3517 |
msgstr ""
|
3518 |
|
3519 |
+
#: class/frontend-form-post.php:1170 includes/class-frontend-form-post.php:787
|
3520 |
msgid "Email successfully verified. Please Login."
|
3521 |
msgstr ""
|
3522 |
|
3627 |
#: includes/fields/class-abstract-fields.php:196
|
3628 |
#: includes/fields/class-field-dropdown.php:102
|
3629 |
#: includes/fields/class-field-multidropdown.php:94
|
3630 |
+
#: includes/fields/class-field-post-taxonomy.php:315
|
3631 |
msgid "- select -"
|
3632 |
msgstr ""
|
3633 |
|
3724 |
msgid "-- Select --"
|
3725 |
msgstr ""
|
3726 |
|
3727 |
+
#: class/render-form.php:1485 includes/fields/class-field-post-taxonomy.php:71
|
3728 |
msgid "This field is no longer available."
|
3729 |
msgstr ""
|
3730 |
|
4709 |
msgstr ""
|
4710 |
|
4711 |
#: includes/fields/class-abstract-fields.php:423
|
4712 |
+
#: includes/fields/class-field-checkbox.php:85
|
4713 |
#: includes/fields/class-field-radio.php:83
|
4714 |
msgid "Show in inline list"
|
4715 |
msgstr ""
|
4716 |
|
4717 |
#: includes/fields/class-abstract-fields.php:433
|
4718 |
+
#: includes/fields/class-field-checkbox.php:95
|
4719 |
#: includes/fields/class-field-radio.php:93
|
4720 |
msgid "Show this option in an inline list"
|
4721 |
msgstr ""
|
4741 |
msgstr ""
|
4742 |
|
4743 |
#: includes/fields/class-field-featured-image.php:101
|
4744 |
+
#: includes/fields/class-field-image.php:123
|
4745 |
msgid "Button Label"
|
4746 |
msgstr ""
|
4747 |
|
4748 |
#: includes/fields/class-field-featured-image.php:106
|
4749 |
+
#: includes/fields/class-field-image.php:128
|
4750 |
msgid "Enter a label for the Select button"
|
4751 |
msgstr ""
|
4752 |
|
6160 |
msgid "Please Cancel Your Currently Active Pack first!"
|
6161 |
msgstr ""
|
6162 |
|
6163 |
+
#: wpuf.php:871
|
6164 |
msgid "Error: Nonce verification failed"
|
6165 |
msgstr ""
|
6166 |
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: tareq1988, sk.shaikat, rabbii, rafsuntaskin, itowhid06, 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.
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 3.1.
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -253,6 +253,16 @@ redirected to the edit page with that post id. Then you'll see the edit post for
|
|
253 |
|
254 |
== Changelog ==
|
255 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
256 |
= v3.1.0 (31 January, 2019) =
|
257 |
|
258 |
* **Fix:** The Default registration form `[wpuf-registration]` was unable to send the new user registration email.
|
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.1
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 3.1.1
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
253 |
|
254 |
== Changelog ==
|
255 |
|
256 |
+
= v3.1.1 (28 February, 2019) =
|
257 |
+
|
258 |
+
* **Fix:** Help text in the Category field were not displaying on the frontend.
|
259 |
+
* **Fix:** Category was not editable when editing the post from the frontend.
|
260 |
+
* **Fix:** Display the admin bar when user role exist.
|
261 |
+
* **Fix:** When the admin edits a post from the backend, it was creating duplicate post.
|
262 |
+
* **Fix:** After enabling post expiration in post form do not save post_expiration meta.
|
263 |
+
* **Fix:** Checkboxes were not linking/syncing with ACF field.
|
264 |
+
* **Fix:** Publish time input option in the Date/Time field, was not working.
|
265 |
+
|
266 |
= v3.1.0 (31 January, 2019) =
|
267 |
|
268 |
* **Fix:** The Default registration form `[wpuf-registration]` was unable to send the new user registration email.
|
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__ ) );
|
@@ -774,10 +774,6 @@ final class WP_User_Frontend {
|
|
774 |
$roles = $roles ? $roles : array();
|
775 |
$current_user = wp_get_current_user();
|
776 |
|
777 |
-
if ( get_user_meta( $current_user->ID, 'show_admin_bar_front', true ) == "true" ) {
|
778 |
-
return true;
|
779 |
-
}
|
780 |
-
|
781 |
if ( !in_array( $current_user->roles[0], $roles ) ) {
|
782 |
return false;
|
783 |
}
|
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.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 |
Domain Path: /languages
|
13 |
*/
|
14 |
|
15 |
+
define( 'WPUF_VERSION', '3.1.1' );
|
16 |
define( 'WPUF_FILE', __FILE__ );
|
17 |
define( 'WPUF_ROOT', dirname( __FILE__ ) );
|
18 |
define( 'WPUF_ROOT_URI', plugins_url( '', __FILE__ ) );
|
774 |
$roles = $roles ? $roles : array();
|
775 |
$current_user = wp_get_current_user();
|
776 |
|
|
|
|
|
|
|
|
|
777 |
if ( !in_array( $current_user->roles[0], $roles ) ) {
|
778 |
return false;
|
779 |
}
|