Changeset 2041471
- Timestamp:
- 02/28/2019 12:15:33 PM (7 years ago)
- Location:
- wp-user-frontend
- Files:
-
- 11 edited
- 71 copied
-
tags/3.1.1 (copied) (copied from wp-user-frontend/trunk)
-
tags/3.1.1/admin/class-admin-settings.php (copied) (copied from wp-user-frontend/trunk/admin/class-admin-settings.php)
-
tags/3.1.1/admin/class-admin-subscription.php (copied) (copied from wp-user-frontend/trunk/admin/class-admin-subscription.php)
-
tags/3.1.1/admin/form-builder/class-wpuf-admin-form-builder.php (copied) (copied from wp-user-frontend/trunk/admin/form-builder/class-wpuf-admin-form-builder.php)
-
tags/3.1.1/admin/form-builder/class-wpuf-form-builder-field-settings.php (copied) (copied from wp-user-frontend/trunk/admin/form-builder/class-wpuf-form-builder-field-settings.php)
-
tags/3.1.1/admin/form.php (copied) (copied from wp-user-frontend/trunk/admin/form.php)
-
tags/3.1.1/admin/html/form-settings-post-edit.php (copied) (copied from wp-user-frontend/trunk/admin/html/form-settings-post-edit.php)
-
tags/3.1.1/admin/html/whats-new.php (copied) (copied from wp-user-frontend/trunk/admin/html/whats-new.php)
-
tags/3.1.1/admin/posting.php (copied) (copied from wp-user-frontend/trunk/admin/posting.php)
-
tags/3.1.1/admin/premium.php (copied) (copied from wp-user-frontend/trunk/admin/premium.php)
-
tags/3.1.1/admin/promotion.php (copied) (copied from wp-user-frontend/trunk/admin/promotion.php)
-
tags/3.1.1/admin/settings-options.php (copied) (copied from wp-user-frontend/trunk/admin/settings-options.php)
-
tags/3.1.1/assets/css/admin/gutenblock-editor.css (copied) (copied from wp-user-frontend/trunk/assets/css/admin/gutenblock-editor.css)
-
tags/3.1.1/assets/css/admin/gutenblock.css (copied) (copied from wp-user-frontend/trunk/assets/css/admin/gutenblock.css)
-
tags/3.1.1/assets/css/frontend-forms.css (copied) (copied from wp-user-frontend/trunk/assets/css/frontend-forms.css)
-
tags/3.1.1/assets/images/promotional-offer (copied) (copied from wp-user-frontend/trunk/assets/images/promotional-offer)
-
tags/3.1.1/assets/js-templates/form-components.php (copied) (copied from wp-user-frontend/trunk/assets/js-templates/form-components.php)
-
tags/3.1.1/assets/js/admin/blockFrameSetup.js (copied) (copied from wp-user-frontend/trunk/assets/js/admin/blockFrameSetup.js)
-
tags/3.1.1/assets/js/admin/gutenblock.js (copied) (copied from wp-user-frontend/trunk/assets/js/admin/gutenblock.js)
-
tags/3.1.1/assets/js/frontend-form.js (copied) (copied from wp-user-frontend/trunk/assets/js/frontend-form.js)
-
tags/3.1.1/assets/js/frontend-form.min.js (copied) (copied from wp-user-frontend/trunk/assets/js/frontend-form.min.js)
-
tags/3.1.1/assets/js/upload.js (copied) (copied from wp-user-frontend/trunk/assets/js/upload.js)
-
tags/3.1.1/assets/js/upload.min.js (copied) (copied from wp-user-frontend/trunk/assets/js/upload.min.js)
-
tags/3.1.1/assets/js/wpuf-admin.js (copied) (copied from wp-user-frontend/trunk/assets/js/wpuf-admin.js)
-
tags/3.1.1/assets/js/wpuf-form-builder-components.js (copied) (copied from wp-user-frontend/trunk/assets/js/wpuf-form-builder-components.js)
-
tags/3.1.1/assets/js/wpuf-form-builder.js (copied) (copied from wp-user-frontend/trunk/assets/js/wpuf-form-builder.js)
-
tags/3.1.1/assets/less/frontend-forms.less (copied) (copied from wp-user-frontend/trunk/assets/less/frontend-forms.less)
-
tags/3.1.1/class/admin-asset-loader.php (copied) (copied from wp-user-frontend/trunk/class/admin-asset-loader.php)
-
tags/3.1.1/class/asset-loader.php (copied) (copied from wp-user-frontend/trunk/class/asset-loader.php)
-
tags/3.1.1/class/frontend-account.php (copied) (copied from wp-user-frontend/trunk/class/frontend-account.php)
-
tags/3.1.1/class/frontend-dashboard.php (copied) (copied from wp-user-frontend/trunk/class/frontend-dashboard.php)
-
tags/3.1.1/class/frontend-form-post.php (copied) (copied from wp-user-frontend/trunk/class/frontend-form-post.php)
-
tags/3.1.1/class/post-form-template.php (copied) (copied from wp-user-frontend/trunk/class/post-form-template.php)
-
tags/3.1.1/class/post-form-templates/post.php (copied) (copied from wp-user-frontend/trunk/class/post-form-templates/post.php)
-
tags/3.1.1/class/render-form.php (copied) (copied from wp-user-frontend/trunk/class/render-form.php)
-
tags/3.1.1/class/subscription.php (copied) (copied from wp-user-frontend/trunk/class/subscription.php)
-
tags/3.1.1/class/upload.php (copied) (copied from wp-user-frontend/trunk/class/upload.php)
-
tags/3.1.1/includes/class-dokan-integration.php (copied) (copied from wp-user-frontend/trunk/includes/class-dokan-integration.php)
-
tags/3.1.1/includes/class-field-manager.php (copied) (copied from wp-user-frontend/trunk/includes/class-field-manager.php)
-
tags/3.1.1/includes/class-form.php (copied) (copied from wp-user-frontend/trunk/includes/class-form.php)
-
tags/3.1.1/includes/class-frontend-form-post.php (copied) (copied from wp-user-frontend/trunk/includes/class-frontend-form-post.php) (5 diffs)
-
tags/3.1.1/includes/class-frontend-render-form.php (copied) (copied from wp-user-frontend/trunk/includes/class-frontend-render-form.php) (1 diff)
-
tags/3.1.1/includes/class-gutenblock.php (copied) (copied from wp-user-frontend/trunk/includes/class-gutenblock.php)
-
tags/3.1.1/includes/class-pro-upgrades.php (copied) (copied from wp-user-frontend/trunk/includes/class-pro-upgrades.php)
-
tags/3.1.1/includes/class-upgrades.php (copied) (copied from wp-user-frontend/trunk/includes/class-upgrades.php)
-
tags/3.1.1/includes/class-user.php (copied) (copied from wp-user-frontend/trunk/includes/class-user.php)
-
tags/3.1.1/includes/class-wc-vendors-integration.php (copied) (copied from wp-user-frontend/trunk/includes/class-wc-vendors-integration.php)
-
tags/3.1.1/includes/class-wcmp-integration.php (copied) (copied from wp-user-frontend/trunk/includes/class-wcmp-integration.php)
-
tags/3.1.1/includes/fields (copied) (copied from wp-user-frontend/trunk/includes/fields)
-
tags/3.1.1/includes/fields/class-field-checkbox.php (modified) (1 diff)
-
tags/3.1.1/includes/fields/class-field-image.php (modified) (2 diffs)
-
tags/3.1.1/includes/fields/class-field-post-taxonomy.php (modified) (6 diffs)
-
tags/3.1.1/includes/free/admin/form-builder/class-wpuf-form-builder-field-settings-free.php (copied) (copied from wp-user-frontend/trunk/includes/free/admin/form-builder/class-wpuf-form-builder-field-settings-free.php)
-
tags/3.1.1/includes/free/admin/form-builder/class-wpuf-form-builder-free.php (copied) (copied from wp-user-frontend/trunk/includes/free/admin/form-builder/class-wpuf-form-builder-free.php)
-
tags/3.1.1/includes/free/class-login.php (copied) (copied from wp-user-frontend/trunk/includes/free/class-login.php)
-
tags/3.1.1/includes/free/class-registration.php (copied) (copied from wp-user-frontend/trunk/includes/free/class-registration.php)
-
tags/3.1.1/includes/free/edit-profile.php (copied) (copied from wp-user-frontend/trunk/includes/free/edit-profile.php)
-
tags/3.1.1/includes/free/loader.php (copied) (copied from wp-user-frontend/trunk/includes/free/loader.php)
-
tags/3.1.1/includes/free/post-form-templates/the_events_calendar.php (copied) (copied from wp-user-frontend/trunk/includes/free/post-form-templates/the_events_calendar.php)
-
tags/3.1.1/includes/free/post-form-templates/woocommerce.php (copied) (copied from wp-user-frontend/trunk/includes/free/post-form-templates/woocommerce.php)
-
tags/3.1.1/includes/upgrades/upgrade-2.9.2.php (copied) (copied from wp-user-frontend/trunk/includes/upgrades/upgrade-2.9.2.php)
-
tags/3.1.1/languages/wp-user-frontend.pot (copied) (copied from wp-user-frontend/trunk/languages/wp-user-frontend.pot) (18 diffs)
-
tags/3.1.1/lib/recaptchalib_noCaptcha.php (copied) (copied from wp-user-frontend/trunk/lib/recaptchalib_noCaptcha.php)
-
tags/3.1.1/readme.txt (copied) (copied from wp-user-frontend/trunk/readme.txt) (2 diffs)
-
tags/3.1.1/templates/dashboard.php (copied) (copied from wp-user-frontend/trunk/templates/dashboard.php)
-
tags/3.1.1/templates/dashboard/dashboard.php (copied) (copied from wp-user-frontend/trunk/templates/dashboard/dashboard.php)
-
tags/3.1.1/templates/dashboard/posts.php (copied) (copied from wp-user-frontend/trunk/templates/dashboard/posts.php)
-
tags/3.1.1/templates/registration-form.php (copied) (copied from wp-user-frontend/trunk/templates/registration-form.php)
-
tags/3.1.1/templates/submit-post.php (copied) (copied from wp-user-frontend/trunk/templates/submit-post.php)
-
tags/3.1.1/templates/subscriptions/pack-details.php (copied) (copied from wp-user-frontend/trunk/templates/subscriptions/pack-details.php)
-
tags/3.1.1/templates/wc-marketplace (copied) (copied from wp-user-frontend/trunk/templates/wc-marketplace)
-
tags/3.1.1/templates/wc-vendors (copied) (copied from wp-user-frontend/trunk/templates/wc-vendors)
-
tags/3.1.1/wpuf-functions.php (copied) (copied from wp-user-frontend/trunk/wpuf-functions.php)
-
tags/3.1.1/wpuf.php (copied) (copied from wp-user-frontend/trunk/wpuf.php) (3 diffs)
-
trunk/includes/class-frontend-form-post.php (modified) (5 diffs)
-
trunk/includes/class-frontend-render-form.php (modified) (1 diff)
-
trunk/includes/fields/class-field-checkbox.php (modified) (1 diff)
-
trunk/includes/fields/class-field-image.php (modified) (2 diffs)
-
trunk/includes/fields/class-field-post-taxonomy.php (modified) (6 diffs)
-
trunk/languages/wp-user-frontend.pot (modified) (18 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wpuf.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-user-frontend/tags/3.1.1/includes/class-frontend-form-post.php
r2022708 r2041471 2 2 3 3 class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form{ 4 5 6 4 7 5 private static $_instance; … … 309 307 if ( isset( $_POST[$_POST['wpuf_is_publish_time']] ) && !empty( $_POST[$_POST['wpuf_is_publish_time']] ) ) { 310 308 // $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']]);309 $date_time = explode(" ", trim($_POST[$_POST['wpuf_is_publish_time']]) ); 312 310 if ( !empty ( $date_time[0] ) ) { 313 311 $timestamp = strtotime( str_replace( array( '/' ), '-', $date_time[0] ) ); … … 412 410 update_post_meta( $post_id, self::$config_id, $form_id ); 413 411 // if user has a subscription pack 414 $this->wpuf_user_subscription_pack( $this->form_settings);412 $this->wpuf_user_subscription_pack( $this->form_settings, $post_id ); 415 413 // set the post form_id for later usage 416 414 update_post_meta( $post_id, self::$config_id, $form_id ); … … 616 614 delete_post_meta( $post_id, $file_input['name'] ); 617 615 616 $image_ids = ''; 617 618 618 if ( count( $file_input['value'] ) > 1 ) { 619 619 $image_ids = maybe_serialize( $file_input['value'] ); 620 } else { 620 } 621 622 if ( count( $file_input['value'] ) == 1 ) { 621 623 $image_ids = $file_input['value'][0]; 622 624 } 623 625 624 add_post_meta( $post_id, $file_input['name'], $image_ids ); 626 if ( !empty( $image_ids ) ) { 627 add_post_meta( $post_id, $file_input['name'], $image_ids ); 628 } 625 629 626 630 //to track how many files are being uploaded … … 788 792 } 789 793 790 function wpuf_user_subscription_pack( $form_settings) {794 function wpuf_user_subscription_pack( $form_settings, $post_id=null ) { 791 795 792 796 // if user has a subscription pack -
wp-user-frontend/tags/3.1.1/includes/class-frontend-render-form.php
r2022708 r2041471 697 697 $meta_key_value[$value['name']] = $_POST[$value['name']]; 698 698 } elseif ( !empty( $acf_compatibility ) && $acf_compatibility == 'yes' ) { 699 $meta_key_value[$value['name']] = maybe_serialize( $_POST[$value['name']] );699 $meta_key_value[$value['name']] = $_POST[$value['name']]; 700 700 } else { 701 701 $meta_key_value[$value['name']] = implode( self::$separator, $_POST[$value['name']] ); -
wp-user-frontend/tags/3.1.1/includes/fields/class-field-checkbox.php
r2022708 r2041471 26 26 if ( isset($post_id) && $post_id != '0' ) { 27 27 if ( $this->is_meta( $field_settings ) ) { 28 $selected = $this->get_meta( $post_id, $field_settings['name'], $type ); 29 $selected = explode(" | ",$selected); 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 } 30 37 } 31 38 }else{ -
wp-user-frontend/tags/3.1.1/includes/fields/class-field-image.php
r2022708 r2041471 51 51 52 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']; 53 56 54 57 ?> … … 57 60 <div id="wpuf-<?php echo $unique_id; ?>-upload-container"> 58 61 <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 $ field_settings['button_label']; ?></a>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> 60 63 61 64 <ul class="wpuf-attachment-list thumbnails"> -
wp-user-frontend/tags/3.1.1/includes/fields/class-field-post-taxonomy.php
r2022708 r2041471 52 52 53 53 $this->exclude = $this->field_settings['exclude']; 54 55 if ( $this->exclude_type == 'child_of' ) { 54 if ( $this->exclude_type == 'child_of' && !empty( $this->exclude ) ) { 56 55 $this->exclude = $this->exclude[0]; 57 56 } … … 102 101 break; 103 102 104 } 103 } ?> 104 <span class="wpuf-wordlimit-message wpuf-help"></span> 105 <?php $this->help_text( $field_settings ); 105 106 106 107 } … … 117 118 // $exclude = $attr['exclude']; 118 119 119 // if ( $this->exclude_type == 'child_of' ) { 120 // $this->exclude = $this->exclude[0]; 121 // } 122 120 if ( $this->exclude_type == 'child_of' && !empty( $this->exclude ) ) { 121 $this->exclude = $this->exclude[0]; 122 } 123 123 $tax_args = array( 124 124 'show_option_none' => __( '-- Select --', 'wp-user-frontend' ), … … 154 154 'order' => $attr['order'], 155 155 'name' => $attr['name'], 156 //'last_term_id' => isset( $attr['parent_cat'] ) ? $attr['parent_cat'] : '',156 // 'last_term_id' => isset( $attr['parent_cat'] ) ? $attr['parent_cat'] : '', 157 157 //'term_id' => $selected 158 158 ); 159 159 $attr = apply_filters( 'wpuf_taxonomy_checklist_args', $attr ); 160 160 ?> 161 <span data-taxonomy=<?php echo json_encode( $attr ); ?>></span>161 <span data-taxonomy=<?php echo json_encode( $attr ); ?>></span> 162 162 <?php 163 163 } … … 182 182 183 183 $level = 0; 184 asort( $terms ); 185 $last_term_id = end( $terms ); 186 187 foreach( $terms as $term_id) { 184 asort( $this->terms ); 185 $last_term_id = end( $this->terms ); 186 foreach( $this->terms as $term_id) { 188 187 $class = ( $last_term_id != $term_id ) ? 'hasChild' : ''; 189 188 ?> … … 192 191 </div> 193 192 <?php 194 $ attr['parent_cat'] = $term_id;193 $this->field_settings['parent_cat'] = $term_id; 195 194 $level++; 196 195 } 197 196 } 198 199 197 ?> 200 198 </div> -
wp-user-frontend/tags/3.1.1/languages/wp-user-frontend.pot
r2022708 r2041471 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP User Frontend 3.1. 0\n"5 "Project-Id-Version: WP User Frontend 3.1.1\n" 6 6 "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n" 7 "POT-Creation-Date: 2019-0 1-31 11:48:06+00:00\n"7 "POT-Creation-Date: 2019-02-28 11:59:31+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 157 157 #: includes/fields/class-abstract-fields.php:358 158 158 #: includes/fields/class-abstract-fields.php:426 159 #: includes/fields/class-field-checkbox.php:8 1159 #: includes/fields/class-field-checkbox.php:88 160 160 #: includes/fields/class-field-radio.php:86 includes/free/form-element.php:477 161 161 #: wpuf.php:706 … … 172 172 #: includes/fields/class-abstract-fields.php:359 173 173 #: includes/fields/class-abstract-fields.php:427 174 #: includes/fields/class-field-checkbox.php:8 2174 #: includes/fields/class-field-checkbox.php:89 175 175 #: includes/fields/class-field-radio.php:87 includes/free/form-element.php:478 176 176 #: wpuf.php:707 … … 523 523 #: class/render-form.php:1680 524 524 #: includes/fields/class-field-featured-image.php:103 525 #: includes/fields/class-field-image.php:12 2526 #: includes/fields/class-field-image.php:14 3525 #: includes/fields/class-field-image.php:125 526 #: includes/fields/class-field-image.php:146 527 527 msgid "Select Image" 528 528 msgstr "" … … 577 577 578 578 #: admin/form-builder/class-wpuf-admin-form-builder.php:268 579 #: includes/fields/class-field-checkbox.php:11 0579 #: includes/fields/class-field-checkbox.php:117 580 580 #: includes/fields/class-field-dropdown.php:101 581 581 #: includes/fields/class-field-multidropdown.php:93 … … 2962 2962 #: admin/template-post.php:93 admin/template.php:634 2963 2963 #: includes/fields/class-field-featured-image.php:97 2964 #: includes/fields/class-field-image.php:1 072964 #: includes/fields/class-field-image.php:110 2965 2965 msgid "Enter maximum upload size limit in KB" 2966 2966 msgstr "" … … 2968 2968 #: admin/template-post.php:105 admin/template.php:646 2969 2969 #: includes/fields/class-field-featured-image.php:93 2970 #: includes/fields/class-field-image.php:10 32970 #: includes/fields/class-field-image.php:106 2971 2971 msgid "Max. file size" 2972 2972 msgstr "" … … 3278 3278 msgstr "" 3279 3279 3280 #: admin/template.php:635 includes/fields/class-field-image.php:11 63280 #: admin/template.php:635 includes/fields/class-field-image.php:119 3281 3281 msgid "Number of images can be uploaded" 3282 3282 msgstr "" 3283 3283 3284 #: admin/template.php:651 includes/fields/class-field-image.php:11 23284 #: admin/template.php:651 includes/fields/class-field-image.php:115 3285 3285 msgid "Max. files" 3286 3286 msgstr "" … … 3445 3445 msgstr "" 3446 3446 3447 #: class/frontend-form-post.php:171 includes/class-frontend-form-post.php: 413447 #: class/frontend-form-post.php:171 includes/class-frontend-form-post.php:39 3448 3448 msgid "You are not logged in" 3449 3449 msgstr "" 3450 3450 3451 3451 #: class/frontend-form-post.php:179 class/frontend-form-post.php:208 3452 #: includes/class-frontend-form-post.php:4 73453 #: includes/class-frontend-form-post.php:7 63452 #: includes/class-frontend-form-post.php:45 3453 #: includes/class-frontend-form-post.php:74 3454 3454 msgid "Invalid post" 3455 3455 msgstr "" 3456 3456 3457 #: class/frontend-form-post.php:186 includes/class-frontend-form-post.php:5 43457 #: class/frontend-form-post.php:186 includes/class-frontend-form-post.php:52 3458 3458 msgid "Your edit access for this post has been locked by an administrator." 3459 3459 msgstr "" 3460 3460 3461 #: class/frontend-form-post.php:190 includes/class-frontend-form-post.php:5 83461 #: class/frontend-form-post.php:190 includes/class-frontend-form-post.php:56 3462 3462 msgid "Your allocated time for editing this post has been expired." 3463 3463 msgstr "" 3464 3464 3465 #: class/frontend-form-post.php:197 includes/class-frontend-form-post.php:6 53465 #: class/frontend-form-post.php:197 includes/class-frontend-form-post.php:63 3466 3466 msgid "Your post edit access has been locked by an administrator." 3467 3467 msgstr "" 3468 3468 3469 #: class/frontend-form-post.php:202 includes/class-frontend-form-post.php: 703469 #: class/frontend-form-post.php:202 includes/class-frontend-form-post.php:68 3470 3470 msgid "Post Editing is disabled" 3471 3471 msgstr "" 3472 3472 3473 #: class/frontend-form-post.php:213 includes/class-frontend-form-post.php: 813473 #: class/frontend-form-post.php:213 includes/class-frontend-form-post.php:79 3474 3474 msgid "You are not allowed to edit" 3475 3475 msgstr "" 3476 3476 3477 #: class/frontend-form-post.php:225 includes/class-frontend-form-post.php:9 23477 #: class/frontend-form-post.php:225 includes/class-frontend-form-post.php:90 3478 3478 msgid "I don't know how to edit this post, I don't have the form ID" 3479 3479 msgstr "" 3480 3480 3481 #: class/frontend-form-post.php:231 includes/class-frontend-form-post.php:10 43481 #: class/frontend-form-post.php:231 includes/class-frontend-form-post.php:102 3482 3482 msgid "You can't edit a post while in pending mode." 3483 3483 msgstr "" … … 3488 3488 msgstr "" 3489 3489 3490 #: class/frontend-form-post.php:335 includes/class-frontend-form-post.php:46 73490 #: class/frontend-form-post.php:335 includes/class-frontend-form-post.php:465 3491 3491 msgid "Invalid email address." 3492 3492 msgstr "" 3493 3493 3494 #: class/frontend-form-post.php:344 includes/class-frontend-form-post.php:47 73494 #: class/frontend-form-post.php:344 includes/class-frontend-form-post.php:475 3495 3495 msgid "" 3496 3496 "You already have an account in our site. Please login to continue.\n" … … 3501 3501 msgstr "" 3502 3502 3503 #: class/frontend-form-post.php:393 includes/class-frontend-form-post.php:53 33503 #: class/frontend-form-post.php:393 includes/class-frontend-form-post.php:531 3504 3504 msgid "You do not have sufficient permissions to access this form." 3505 3505 msgstr "" 3506 3506 3507 3507 #: class/frontend-form-post.php:732 class/frontend-form-post.php:739 3508 #: includes/class-frontend-form-post.php:8 893509 #: includes/class-frontend-form-post.php:89 53508 #: includes/class-frontend-form-post.php:893 3509 #: includes/class-frontend-form-post.php:899 3510 3510 msgid "" 3511 3511 "Thank you for posting on our site. We have sent you an confirmation email. " … … 3513 3513 msgstr "" 3514 3514 3515 #: class/frontend-form-post.php:792 includes/class-frontend-form-post.php:4 513515 #: class/frontend-form-post.php:792 includes/class-frontend-form-post.php:449 3516 3516 msgid "Something went wrong" 3517 3517 msgstr "" 3518 3518 3519 #: class/frontend-form-post.php:1170 includes/class-frontend-form-post.php:78 33519 #: class/frontend-form-post.php:1170 includes/class-frontend-form-post.php:787 3520 3520 msgid "Email successfully verified. Please Login." 3521 3521 msgstr "" … … 3628 3628 #: includes/fields/class-field-dropdown.php:102 3629 3629 #: includes/fields/class-field-multidropdown.php:94 3630 #: includes/fields/class-field-post-taxonomy.php:31 73630 #: includes/fields/class-field-post-taxonomy.php:315 3631 3631 msgid "- select -" 3632 3632 msgstr "" … … 3725 3725 msgstr "" 3726 3726 3727 #: class/render-form.php:1485 includes/fields/class-field-post-taxonomy.php:7 23727 #: class/render-form.php:1485 includes/fields/class-field-post-taxonomy.php:71 3728 3728 msgid "This field is no longer available." 3729 3729 msgstr "" … … 4710 4710 4711 4711 #: includes/fields/class-abstract-fields.php:423 4712 #: includes/fields/class-field-checkbox.php: 784712 #: includes/fields/class-field-checkbox.php:85 4713 4713 #: includes/fields/class-field-radio.php:83 4714 4714 msgid "Show in inline list" … … 4716 4716 4717 4717 #: includes/fields/class-abstract-fields.php:433 4718 #: includes/fields/class-field-checkbox.php: 884718 #: includes/fields/class-field-checkbox.php:95 4719 4719 #: includes/fields/class-field-radio.php:93 4720 4720 msgid "Show this option in an inline list" … … 4742 4742 4743 4743 #: includes/fields/class-field-featured-image.php:101 4744 #: includes/fields/class-field-image.php:12 04744 #: includes/fields/class-field-image.php:123 4745 4745 msgid "Button Label" 4746 4746 msgstr "" 4747 4747 4748 4748 #: includes/fields/class-field-featured-image.php:106 4749 #: includes/fields/class-field-image.php:12 54749 #: includes/fields/class-field-image.php:128 4750 4750 msgid "Enter a label for the Select button" 4751 4751 msgstr "" … … 6161 6161 msgstr "" 6162 6162 6163 #: wpuf.php:87 56163 #: wpuf.php:871 6164 6164 msgid "Error: Nonce verification failed" 6165 6165 msgstr "" -
wp-user-frontend/tags/3.1.1/readme.txt
r2022708 r2041471 4 4 Tags: Forms, registration, profile-builder, login, membership 5 5 Requires at least: 4.0 6 Tested up to: 5. 0.36 Tested up to: 5.1 7 7 Requires PHP: 5.4 8 Stable tag: 3.1. 08 Stable tag: 3.1.1 9 9 License: GPLv2 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 253 253 254 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. 255 265 256 266 = v3.1.0 (31 January, 2019) = -
wp-user-frontend/tags/3.1.1/wpuf.php
r2022708 r2041471 5 5 Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more... 6 6 Author: Tareq Hasan 7 Version: 3.1. 07 Version: 3.1.1 8 8 Author URI: https://tareq.co 9 9 License: GPL2 or later … … 13 13 */ 14 14 15 define( 'WPUF_VERSION', '3.1. 0' );15 define( 'WPUF_VERSION', '3.1.1' ); 16 16 define( 'WPUF_FILE', __FILE__ ); 17 17 define( 'WPUF_ROOT', dirname( __FILE__ ) ); … … 775 775 $current_user = wp_get_current_user(); 776 776 777 if ( get_user_meta( $current_user->ID, 'show_admin_bar_front', true ) == "true" ) {778 return true;779 }780 781 777 if ( !in_array( $current_user->roles[0], $roles ) ) { 782 778 return false; -
wp-user-frontend/trunk/includes/class-frontend-form-post.php
r2022708 r2041471 2 2 3 3 class WPUF_Frontend_Form extends WPUF_Frontend_Render_Form{ 4 5 6 4 7 5 private static $_instance; … … 309 307 if ( isset( $_POST[$_POST['wpuf_is_publish_time']] ) && !empty( $_POST[$_POST['wpuf_is_publish_time']] ) ) { 310 308 // $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']]);309 $date_time = explode(" ", trim($_POST[$_POST['wpuf_is_publish_time']]) ); 312 310 if ( !empty ( $date_time[0] ) ) { 313 311 $timestamp = strtotime( str_replace( array( '/' ), '-', $date_time[0] ) ); … … 412 410 update_post_meta( $post_id, self::$config_id, $form_id ); 413 411 // if user has a subscription pack 414 $this->wpuf_user_subscription_pack( $this->form_settings);412 $this->wpuf_user_subscription_pack( $this->form_settings, $post_id ); 415 413 // set the post form_id for later usage 416 414 update_post_meta( $post_id, self::$config_id, $form_id ); … … 616 614 delete_post_meta( $post_id, $file_input['name'] ); 617 615 616 $image_ids = ''; 617 618 618 if ( count( $file_input['value'] ) > 1 ) { 619 619 $image_ids = maybe_serialize( $file_input['value'] ); 620 } else { 620 } 621 622 if ( count( $file_input['value'] ) == 1 ) { 621 623 $image_ids = $file_input['value'][0]; 622 624 } 623 625 624 add_post_meta( $post_id, $file_input['name'], $image_ids ); 626 if ( !empty( $image_ids ) ) { 627 add_post_meta( $post_id, $file_input['name'], $image_ids ); 628 } 625 629 626 630 //to track how many files are being uploaded … … 788 792 } 789 793 790 function wpuf_user_subscription_pack( $form_settings) {794 function wpuf_user_subscription_pack( $form_settings, $post_id=null ) { 791 795 792 796 // if user has a subscription pack -
wp-user-frontend/trunk/includes/class-frontend-render-form.php
r2022708 r2041471 697 697 $meta_key_value[$value['name']] = $_POST[$value['name']]; 698 698 } elseif ( !empty( $acf_compatibility ) && $acf_compatibility == 'yes' ) { 699 $meta_key_value[$value['name']] = maybe_serialize( $_POST[$value['name']] );699 $meta_key_value[$value['name']] = $_POST[$value['name']]; 700 700 } else { 701 701 $meta_key_value[$value['name']] = implode( self::$separator, $_POST[$value['name']] ); -
wp-user-frontend/trunk/includes/fields/class-field-checkbox.php
r2022708 r2041471 26 26 if ( isset($post_id) && $post_id != '0' ) { 27 27 if ( $this->is_meta( $field_settings ) ) { 28 $selected = $this->get_meta( $post_id, $field_settings['name'], $type ); 29 $selected = explode(" | ",$selected); 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 } 30 37 } 31 38 }else{ -
wp-user-frontend/trunk/includes/fields/class-field-image.php
r2022708 r2041471 51 51 52 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']; 53 56 54 57 ?> … … 57 60 <div id="wpuf-<?php echo $unique_id; ?>-upload-container"> 58 61 <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 $ field_settings['button_label']; ?></a>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> 60 63 61 64 <ul class="wpuf-attachment-list thumbnails"> -
wp-user-frontend/trunk/includes/fields/class-field-post-taxonomy.php
r2022708 r2041471 52 52 53 53 $this->exclude = $this->field_settings['exclude']; 54 55 if ( $this->exclude_type == 'child_of' ) { 54 if ( $this->exclude_type == 'child_of' && !empty( $this->exclude ) ) { 56 55 $this->exclude = $this->exclude[0]; 57 56 } … … 102 101 break; 103 102 104 } 103 } ?> 104 <span class="wpuf-wordlimit-message wpuf-help"></span> 105 <?php $this->help_text( $field_settings ); 105 106 106 107 } … … 117 118 // $exclude = $attr['exclude']; 118 119 119 // if ( $this->exclude_type == 'child_of' ) { 120 // $this->exclude = $this->exclude[0]; 121 // } 122 120 if ( $this->exclude_type == 'child_of' && !empty( $this->exclude ) ) { 121 $this->exclude = $this->exclude[0]; 122 } 123 123 $tax_args = array( 124 124 'show_option_none' => __( '-- Select --', 'wp-user-frontend' ), … … 154 154 'order' => $attr['order'], 155 155 'name' => $attr['name'], 156 //'last_term_id' => isset( $attr['parent_cat'] ) ? $attr['parent_cat'] : '',156 // 'last_term_id' => isset( $attr['parent_cat'] ) ? $attr['parent_cat'] : '', 157 157 //'term_id' => $selected 158 158 ); 159 159 $attr = apply_filters( 'wpuf_taxonomy_checklist_args', $attr ); 160 160 ?> 161 <span data-taxonomy=<?php echo json_encode( $attr ); ?>></span>161 <span data-taxonomy=<?php echo json_encode( $attr ); ?>></span> 162 162 <?php 163 163 } … … 182 182 183 183 $level = 0; 184 asort( $terms ); 185 $last_term_id = end( $terms ); 186 187 foreach( $terms as $term_id) { 184 asort( $this->terms ); 185 $last_term_id = end( $this->terms ); 186 foreach( $this->terms as $term_id) { 188 187 $class = ( $last_term_id != $term_id ) ? 'hasChild' : ''; 189 188 ?> … … 192 191 </div> 193 192 <?php 194 $ attr['parent_cat'] = $term_id;193 $this->field_settings['parent_cat'] = $term_id; 195 194 $level++; 196 195 } 197 196 } 198 199 197 ?> 200 198 </div> -
wp-user-frontend/trunk/languages/wp-user-frontend.pot
r2022708 r2041471 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WP User Frontend 3.1. 0\n"5 "Project-Id-Version: WP User Frontend 3.1.1\n" 6 6 "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n" 7 "POT-Creation-Date: 2019-0 1-31 11:48:06+00:00\n"7 "POT-Creation-Date: 2019-02-28 11:59:31+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 157 157 #: includes/fields/class-abstract-fields.php:358 158 158 #: includes/fields/class-abstract-fields.php:426 159 #: includes/fields/class-field-checkbox.php:8 1159 #: includes/fields/class-field-checkbox.php:88 160 160 #: includes/fields/class-field-radio.php:86 includes/free/form-element.php:477 161 161 #: wpuf.php:706 … … 172 172 #: includes/fields/class-abstract-fields.php:359 173 173 #: includes/fields/class-abstract-fields.php:427 174 #: includes/fields/class-field-checkbox.php:8 2174 #: includes/fields/class-field-checkbox.php:89 175 175 #: includes/fields/class-field-radio.php:87 includes/free/form-element.php:478 176 176 #: wpuf.php:707 … … 523 523 #: class/render-form.php:1680 524 524 #: includes/fields/class-field-featured-image.php:103 525 #: includes/fields/class-field-image.php:12 2526 #: includes/fields/class-field-image.php:14 3525 #: includes/fields/class-field-image.php:125 526 #: includes/fields/class-field-image.php:146 527 527 msgid "Select Image" 528 528 msgstr "" … … 577 577 578 578 #: admin/form-builder/class-wpuf-admin-form-builder.php:268 579 #: includes/fields/class-field-checkbox.php:11 0579 #: includes/fields/class-field-checkbox.php:117 580 580 #: includes/fields/class-field-dropdown.php:101 581 581 #: includes/fields/class-field-multidropdown.php:93 … … 2962 2962 #: admin/template-post.php:93 admin/template.php:634 2963 2963 #: includes/fields/class-field-featured-image.php:97 2964 #: includes/fields/class-field-image.php:1 072964 #: includes/fields/class-field-image.php:110 2965 2965 msgid "Enter maximum upload size limit in KB" 2966 2966 msgstr "" … … 2968 2968 #: admin/template-post.php:105 admin/template.php:646 2969 2969 #: includes/fields/class-field-featured-image.php:93 2970 #: includes/fields/class-field-image.php:10 32970 #: includes/fields/class-field-image.php:106 2971 2971 msgid "Max. file size" 2972 2972 msgstr "" … … 3278 3278 msgstr "" 3279 3279 3280 #: admin/template.php:635 includes/fields/class-field-image.php:11 63280 #: admin/template.php:635 includes/fields/class-field-image.php:119 3281 3281 msgid "Number of images can be uploaded" 3282 3282 msgstr "" 3283 3283 3284 #: admin/template.php:651 includes/fields/class-field-image.php:11 23284 #: admin/template.php:651 includes/fields/class-field-image.php:115 3285 3285 msgid "Max. files" 3286 3286 msgstr "" … … 3445 3445 msgstr "" 3446 3446 3447 #: class/frontend-form-post.php:171 includes/class-frontend-form-post.php: 413447 #: class/frontend-form-post.php:171 includes/class-frontend-form-post.php:39 3448 3448 msgid "You are not logged in" 3449 3449 msgstr "" 3450 3450 3451 3451 #: class/frontend-form-post.php:179 class/frontend-form-post.php:208 3452 #: includes/class-frontend-form-post.php:4 73453 #: includes/class-frontend-form-post.php:7 63452 #: includes/class-frontend-form-post.php:45 3453 #: includes/class-frontend-form-post.php:74 3454 3454 msgid "Invalid post" 3455 3455 msgstr "" 3456 3456 3457 #: class/frontend-form-post.php:186 includes/class-frontend-form-post.php:5 43457 #: class/frontend-form-post.php:186 includes/class-frontend-form-post.php:52 3458 3458 msgid "Your edit access for this post has been locked by an administrator." 3459 3459 msgstr "" 3460 3460 3461 #: class/frontend-form-post.php:190 includes/class-frontend-form-post.php:5 83461 #: class/frontend-form-post.php:190 includes/class-frontend-form-post.php:56 3462 3462 msgid "Your allocated time for editing this post has been expired." 3463 3463 msgstr "" 3464 3464 3465 #: class/frontend-form-post.php:197 includes/class-frontend-form-post.php:6 53465 #: class/frontend-form-post.php:197 includes/class-frontend-form-post.php:63 3466 3466 msgid "Your post edit access has been locked by an administrator." 3467 3467 msgstr "" 3468 3468 3469 #: class/frontend-form-post.php:202 includes/class-frontend-form-post.php: 703469 #: class/frontend-form-post.php:202 includes/class-frontend-form-post.php:68 3470 3470 msgid "Post Editing is disabled" 3471 3471 msgstr "" 3472 3472 3473 #: class/frontend-form-post.php:213 includes/class-frontend-form-post.php: 813473 #: class/frontend-form-post.php:213 includes/class-frontend-form-post.php:79 3474 3474 msgid "You are not allowed to edit" 3475 3475 msgstr "" 3476 3476 3477 #: class/frontend-form-post.php:225 includes/class-frontend-form-post.php:9 23477 #: class/frontend-form-post.php:225 includes/class-frontend-form-post.php:90 3478 3478 msgid "I don't know how to edit this post, I don't have the form ID" 3479 3479 msgstr "" 3480 3480 3481 #: class/frontend-form-post.php:231 includes/class-frontend-form-post.php:10 43481 #: class/frontend-form-post.php:231 includes/class-frontend-form-post.php:102 3482 3482 msgid "You can't edit a post while in pending mode." 3483 3483 msgstr "" … … 3488 3488 msgstr "" 3489 3489 3490 #: class/frontend-form-post.php:335 includes/class-frontend-form-post.php:46 73490 #: class/frontend-form-post.php:335 includes/class-frontend-form-post.php:465 3491 3491 msgid "Invalid email address." 3492 3492 msgstr "" 3493 3493 3494 #: class/frontend-form-post.php:344 includes/class-frontend-form-post.php:47 73494 #: class/frontend-form-post.php:344 includes/class-frontend-form-post.php:475 3495 3495 msgid "" 3496 3496 "You already have an account in our site. Please login to continue.\n" … … 3501 3501 msgstr "" 3502 3502 3503 #: class/frontend-form-post.php:393 includes/class-frontend-form-post.php:53 33503 #: class/frontend-form-post.php:393 includes/class-frontend-form-post.php:531 3504 3504 msgid "You do not have sufficient permissions to access this form." 3505 3505 msgstr "" 3506 3506 3507 3507 #: class/frontend-form-post.php:732 class/frontend-form-post.php:739 3508 #: includes/class-frontend-form-post.php:8 893509 #: includes/class-frontend-form-post.php:89 53508 #: includes/class-frontend-form-post.php:893 3509 #: includes/class-frontend-form-post.php:899 3510 3510 msgid "" 3511 3511 "Thank you for posting on our site. We have sent you an confirmation email. " … … 3513 3513 msgstr "" 3514 3514 3515 #: class/frontend-form-post.php:792 includes/class-frontend-form-post.php:4 513515 #: class/frontend-form-post.php:792 includes/class-frontend-form-post.php:449 3516 3516 msgid "Something went wrong" 3517 3517 msgstr "" 3518 3518 3519 #: class/frontend-form-post.php:1170 includes/class-frontend-form-post.php:78 33519 #: class/frontend-form-post.php:1170 includes/class-frontend-form-post.php:787 3520 3520 msgid "Email successfully verified. Please Login." 3521 3521 msgstr "" … … 3628 3628 #: includes/fields/class-field-dropdown.php:102 3629 3629 #: includes/fields/class-field-multidropdown.php:94 3630 #: includes/fields/class-field-post-taxonomy.php:31 73630 #: includes/fields/class-field-post-taxonomy.php:315 3631 3631 msgid "- select -" 3632 3632 msgstr "" … … 3725 3725 msgstr "" 3726 3726 3727 #: class/render-form.php:1485 includes/fields/class-field-post-taxonomy.php:7 23727 #: class/render-form.php:1485 includes/fields/class-field-post-taxonomy.php:71 3728 3728 msgid "This field is no longer available." 3729 3729 msgstr "" … … 4710 4710 4711 4711 #: includes/fields/class-abstract-fields.php:423 4712 #: includes/fields/class-field-checkbox.php: 784712 #: includes/fields/class-field-checkbox.php:85 4713 4713 #: includes/fields/class-field-radio.php:83 4714 4714 msgid "Show in inline list" … … 4716 4716 4717 4717 #: includes/fields/class-abstract-fields.php:433 4718 #: includes/fields/class-field-checkbox.php: 884718 #: includes/fields/class-field-checkbox.php:95 4719 4719 #: includes/fields/class-field-radio.php:93 4720 4720 msgid "Show this option in an inline list" … … 4742 4742 4743 4743 #: includes/fields/class-field-featured-image.php:101 4744 #: includes/fields/class-field-image.php:12 04744 #: includes/fields/class-field-image.php:123 4745 4745 msgid "Button Label" 4746 4746 msgstr "" 4747 4747 4748 4748 #: includes/fields/class-field-featured-image.php:106 4749 #: includes/fields/class-field-image.php:12 54749 #: includes/fields/class-field-image.php:128 4750 4750 msgid "Enter a label for the Select button" 4751 4751 msgstr "" … … 6161 6161 msgstr "" 6162 6162 6163 #: wpuf.php:87 56163 #: wpuf.php:871 6164 6164 msgid "Error: Nonce verification failed" 6165 6165 msgstr "" -
wp-user-frontend/trunk/readme.txt
r2022708 r2041471 4 4 Tags: Forms, registration, profile-builder, login, membership 5 5 Requires at least: 4.0 6 Tested up to: 5. 0.36 Tested up to: 5.1 7 7 Requires PHP: 5.4 8 Stable tag: 3.1. 08 Stable tag: 3.1.1 9 9 License: GPLv2 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 253 253 254 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. 255 265 256 266 = v3.1.0 (31 January, 2019) = -
wp-user-frontend/trunk/wpuf.php
r2022708 r2041471 5 5 Description: Create, edit, delete, manages your post, pages or custom post types from frontend. Create registration forms, frontend profile and more... 6 6 Author: Tareq Hasan 7 Version: 3.1. 07 Version: 3.1.1 8 8 Author URI: https://tareq.co 9 9 License: GPL2 or later … … 13 13 */ 14 14 15 define( 'WPUF_VERSION', '3.1. 0' );15 define( 'WPUF_VERSION', '3.1.1' ); 16 16 define( 'WPUF_FILE', __FILE__ ); 17 17 define( 'WPUF_ROOT', dirname( __FILE__ ) ); … … 775 775 $current_user = wp_get_current_user(); 776 776 777 if ( get_user_meta( $current_user->ID, 'show_admin_bar_front', true ) == "true" ) {778 return true;779 }780 781 777 if ( !in_array( $current_user->roles[0], $roles ) ) { 782 778 return false;
Note: See TracChangeset
for help on using the changeset viewer.