Version Description
- Fixed bug with content restriction shortcode not working correctly.
- Fixed bug with item dragging in the form builder.
- Added: Clear form after registration.
- Added action hook to email template.
- Pro Added enabling/disabling of passwordless login per form.
- Pro support for replacing the registration form in WooCommerce my account page
Download this release
Release Info
Developer | Collizo4sky |
Plugin | WP User Avatar |
Version | 3.2.8 |
Comparing to | |
See all releases |
Code changes from version 3.2.7 to 3.2.8
- assets/js/builder/app.min.js +1 -1
- assets/js/builder/src/views/sidebar-layout.js +2 -0
- assets/js/frontend.js +10 -1
- assets/js/frontend.min.js +1 -1
- changelog.txt +10 -0
- languages/wp-user-avatar.pot +41 -41
- readme.txt +9 -1
- src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php +18 -10
- src/Classes/WelcomeEmailAfterSignup.php +1 -1
- src/Classes/default-email-template.php +3 -0
- src/ContentProtection/Frontend/RestrictionShortcode.php +4 -4
- src/ShortcodeParser/FormProcessor.php +5 -0
- src/ShortcodeParser/MelangeTag.php +2 -0
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +2 -2
- wp-user-avatar.php +2 -2
assets/js/builder/app.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function($,e,t,i){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=l($),d=l(e),n=l(t),o=l(i),r=d.default.View.extend({className:"pp-form-buider-settings-popup-container",iconPickerTemplate:n.default.template("pp-form-builder-material-icon"),events:{"click .pp-form-cancel-btn":"cancel_settings","click .pp-form-buider-settings-popup-tab-menu":"switch_tab","click .pp-form-save-btn":"save_changes","click .pp-form-control-icon-picker":"icon_picker","keyup input[name=label].pp-form-control":"make_label_placeholder"},initialize:function(e){if(void 0===e.fieldType)throw new Error("Field Type required");this.options=e,_.bindAll(this,"switch_tab"),_.bindAll(this,"save_changes"),_.bindAll(this,"icon_picker")},icon_picker:function(e){e.preventDefault();var t=this,i=a.default(e.target);(t.jboxInstance=new jBox("Modal",{title:a.default("#pp-form-material-icon-picker-tmpl-title").html(),maxWidth:600,zIndex:999999999,addClass:"pp-icon-picker-jbox-wrap",overlayClass:"pp-icon-picker-jbox-overlay",animation:"zoomIn",content:a.default("#pp-form-material-icon-picker-tmpl"),onOpen:function(){var e=a.default("input.pp-form-control",i.parent()),l=e.val(),d=a.default("#pp-form-material-icon-picker-tmpl");d.find(".pp-form-material-icon-wrap").removeClass("pp-active"),""!==l&&d.find('.pp-form-material-icon-wrap[data-material-icon="'+l+'"]').addClass("pp-active"),a.default(".pp-form-material-icon-wrap").click((function(){var l=a.default(this).data("material-icon");i.html(t.iconPickerTemplate({icon:l})),e.val(l),t.jboxInstance.close()}))}})).open()},save_changes:function(e){e.preventDefault();var t=this;a.default(".pp-form-control").each((function(){var e=a.default(this).attr("name"),i=a.default(this).val();"checkbox"===a.default(this).attr("type")&&(i=this.checked),void 0!==e&&t.options.model.set(e,i)})),a.default("#label",this.$el).length>0?t.options.model.set("fieldBarTitle",a.default("#label",this.$el).val()):t.options.model.set("fieldBarTitle",a.default("#placeholder",this.$el).val()),t.remove()},switch_tab:function(e){e.preventDefault(),a.default(".pp-form-buider-settings-popup-tab-menu",this.$el).removeClass("active"),a.default(e.target).addClass("active"),a.default(".pp-form-buider-settings-popup-tab-content",this.$el).hide(),a.default(a.default(e.target).attr("href")).show()},make_label_placeholder:function(e){e.preventDefault();var t=a.default("input[name=placeholder]",this.$el);!0!==this.$el.data("make_label_placeholder_flag")&&this.$el.data("make_label_placeholder_flag",""===t.val()),!0===this.$el.data("make_label_placeholder_flag")&&t.val(a.default(e.target).val())},cancel_settings_outside:function(e){e.target==this.el&&this.remove()},cancel_settings:function(e){e.preventDefault(),this.remove()},render:function(){var e=-1!==this.options.fieldType.indexOf("reg-cpf")?"reg-cpf":this.options.fieldType;e=-1!==e.indexOf("edit-profile-cpf")?"edit-profile-cpf":e;var t=this.options.model.get("definedFieldType");void 0!==t&&(e=e+"-"+t);var i=n.default.template("pp-form-builder-popup-settings-"+e);this.$el.html(i(this.options.model.toJSON())),a.default(".pp-form-buider-settings-popup-tab-menu",this.$el).eq(0).addClass("active"),a.default(".pp-form-buider-settings-popup-tab-content",this.$el).hide().eq(0).show()}}),p=d.default.View.extend({className:"pp-builder-element",template:n.default.template("pp-form-builder-field-bar"),events:{"click .pp-builder-element-expand-button.pp-settings":"reveal_settings","click .pp-builder-element-expand-button.pp-delete":"delete_field","click .pp-builder-element-expand-button.pp-clone":"clone_field"},reveal_settings:function(e){e.preventDefault(),a.default(e.target).parent("a").blur();var t=this.model.get("fieldType"),i=new r({fieldType:t,model:this.model});i.render(),a.default("body").append(i.$el);var l=a.default(".pp-form-control-wpeditor");l.length>0&&l.each((function(){var e=a.default(this).attr("id");a.default("#"+e).pp_wp_editor({mode:"tmce"}),tinymce.get(e).on("keyup change undo redo SetContent",(function(){this.save()}))}))},delete_field:function(e){e.preventDefault(),confirm(pp_form_builder.confirm_delete)&&(a.default(e.target).parent("a").blur(),this.remove(),this.collection.remove(this.model))},clone_field:function(e){e.preventDefault(),a.default(e.target).parent("a").blur(),this.collection.add(this.model.clone(),{at:this.collection.indexOf(this.model)})},render:function(){var e=this.model.get("fieldType"),t=void 0!==pp_form_builder_combined_fields[e]&&"undefined"!==pp_form_builder_combined_fields[e].fieldTitle?pp_form_builder_combined_fields[e].fieldTitle:this.model.get("fieldTitle");this.$el.html(this.template({fieldType:e,fieldTitle:t,fieldIcon:this.model.get("fieldIcon"),fieldBarTitle:this.model.get("fieldBarTitle")})).data("modelCID",this.model.cid)}}),s=function(e,t,i,l){var a=i.findWhere({fieldType:"footer"}),d="pp_form_builder_"+t+"_fields";l=void 0!==l?l:i.indexOf(a);var n=_.extend(window[d][e],{fieldType:e});i.add(n,{at:l,sort:!1})},f=function(e){a.default("#pp-form-builder-fields-settings").val(JSON.stringify(e.toJSON())),a.default(".pp_edit_form form").submit()},c=d.default.View.extend({el:"#pp-form-builder",initialize:function(){_.bindAll(this,"update_sort_index"),_.bindAll(this,"addFieldOnDrop"),this.listenTo(this.collection,"add",this.render),this.listenTo(this.collection,"remove",this.render),this.listenTo(this.collection,"pp_fieldBarTitle_changed",this.render)},initSortable:function(){this.$el.sortable({items:".pp-builder-element",cursor:"move",placeholder:"pp-form-builder-drag-bg",update:this.update_sort_index,receive:this.addFieldOnDrop})},addFieldOnDrop:function(e,t){var i,l;0===t.helper.prev().length||void 0===t.helper.prev().data("modelCID")?i=0:(l=t.helper.prev().data("modelCID"),i=this.collection.get(l).get("sortID"));var a=t.helper.find("a").data("field-type"),d=t.helper.find("a").data("field-category");s(a,d,this.collection,i),this.update_sort_index(),t.helper.remove()},update_sort_index:function(){var e=this.collection;a.default(".pp-builder-form-content .pp-builder-element").each((function(t){t++;var i=a.default(this).data("modelCID");e.get(i).set("sortID",t)})),e.sort()},render:function(){var e=this.collection,t=[];e.each((function(i){var l=new p({model:i,collection:e});l.render(),t.push(l.el)})),this.$el.find(".pp-form-builder-body .pp-builder-form-content").html(t),this.initSortable()}}),u=d.default.View.extend({el:"#pp-form-builder-metabox",events:{"click .pp_upload_button":"media_upload"},initialize:function(){a.default(".pp-color-field",this.$el).wpColorPicker(),a.default(".ppselect2",this.$el).select2(),this.tabify(),new jBox("Tooltip",{attach:".pp-form-builder-help-tip",maxWidth:200,theme:"TooltipDark"}),a.default(".form-field .wp-picker-container",this.$el).parent(".pp-field-row-content").css("width","auto")},tabify:function(){a.default("ul.pp-tabs li a",this.$el).click((function(e){e.preventDefault(),a.default(".pp-form-builder_options_panel").hide(),a.default("#pp-form-builder-metabox ul.pp-tabs li").removeClass("active"),a.default(this).parent().addClass("active"),a.default(a.default(this).attr("href")).show()})).get(0).click()},media_upload:function(e){e.preventDefault();var t,i=a.default(e.target);t||(t=wp.media.frames.file_frame=wp.media({frame:"select",multiple:!1,library:{type:"image"}})).on("select",(function(){var e=t.state().get("selection").first().toJSON();i.parents(".pp_upload_field_container").find(".pp_upload_field").val(e.url)})),t.open()}}),m=d.default.View.extend({el:".pp-form-builder-sidebar-wrap",template:n.default.template("pp-form-builder-sidebar-fields-block"),events:{"click .pp-draggable-field":"add_field","click .pp-form-save-changes":"save_changes"},initialize:function(){this.listenTo(this.collection,"add",this.disable_active_standard_fields),this.listenTo(this.collection,"remove",this.enable_inactive_standard_fields)},initDraggable:function(){this.$el.find(".pp-draggable-field").draggable({connectToSortable:"#pp-form-builder",helper:"clone",revert:"invalid",delay:10})},add_field:function(e){if(e.preventDefault(),a.default(e.target).parent(".pp-draggable-field").hasClass("ui-draggable-disabled"))return!1;var t=a.default(e.target).data("field-type"),i=a.default(e.target).data("field-category");s(t,i,this.collection)},save_changes:function(e){e.preventDefault(),f(this.collection)},disable_active_standard_fields:function(){this.collection.each((function(e){var t=e.get("fieldType");o.default.contains(pp_form_builder_fields_multiple_addition,t)||(a.default('[data-field-type="'+t+'"]',"#pp-form-builder-standard-fields").attr("disabled","disabled").parent(".pp-draggable-field").draggable("disable"),a.default('[data-field-type="'+t+'"]',"#pp-form-builder-defined-fields").attr("disabled","disabled").parent(".pp-draggable-field").draggable("disable"))}))},enable_inactive_standard_fields:function(e){var t=e.get("fieldType");o.default.contains(pp_form_builder_fields_multiple_addition,t)||(a.default('[data-field-type="'+t+'"]',"#pp-form-builder-standard-fields").removeAttr("disabled","disabled").parent(".pp-draggable-field").draggable("enable"),a.default('[data-field-type="'+t+'"]',"#pp-form-builder-defined-fields").removeAttr("disabled","disabled").parent(".pp-draggable-field").draggable("enable"))},render:function(){var e=[this.template({fieldsBlockType:"standard",fields:pp_form_builder_standard_fields})];!1===o.default.isEmpty(pp_form_builder_defined_fields)&&e.push(this.template({fieldsBlockType:"defined",fields:pp_form_builder_defined_fields})),!1===o.default.isEmpty(pp_form_builder_wc_billing_fields)&&e.push(this.template({fieldsBlockType:"wc_billing",fields:pp_form_builder_wc_billing_fields})),!1===o.default.isEmpty(pp_form_builder_wc_shipping_fields)&&e.push(this.template({fieldsBlockType:"wc_shipping",fields:pp_form_builder_wc_shipping_fields})),this.$el.find("#pp-form-builder-sidebar-fields-block").html(e),this.initDraggable(),this.disable_active_standard_fields()}}),h=d.default.Model.extend({initialize:function(){this.on("change:fieldBarTitle",(function(e,t){this.trigger("pp_fieldBarTitle_changed")}))}}),b=d.default.Collection.extend({model:h}),v=function(){a.default("#title").each((function(){var e=a.default(this),t=a.default("#"+this.id+"-prompt-text");""===this.value&&t.removeClass("screen-reader-text"),t.click((function(){a.default(this).addClass("screen-reader-text"),e.focus()})),e.blur((function(){""===this.value&&t.removeClass("screen-reader-text")})),e.focus((function(){t.addClass("screen-reader-text")}))}))},g=function(){a.default(document).on("click",".pp-metabox-handle",(function(e){e.preventDefault();var t=a.default(this),i=a.default(".pp-metabox-handle"),l=a.default(this).parents(".pp-postbox-wrap");i.parents(".pp-postbox-wrap").find(".postbox-header").removeClass("postbox").removeClass("closed"),i.not(t).parents(".pp-postbox-wrap").addClass("closed"),l.hasClass("closed")?l.removeClass("closed"):l.addClass("closed")})),a.default("#pp-form-builder-standard-fields .pp-metabox-handle").click()},w=function(){var e=new b(pp_form_builder_fields_settings);window.ppFormSettings=e,e.comparator="sortID",new c({collection:e}).render(),new m({collection:e}).render(),a.default(document).on("click",".pp-form-save-changes",(function(e){e.preventDefault(),f(window.ppFormSettings)})),new u};a.default((function(){var e=a.default(".pp-dnd-form-builder-wrap");0!==e.length&&(w(),v(),g(),setTimeout((function(){e.css("opacity","1")}),500))}))}(jQuery,Backbone,wp,_);
|
1 |
+
!function($,e,t,i){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=l($),d=l(e),n=l(t),o=l(i),r=d.default.View.extend({className:"pp-form-buider-settings-popup-container",iconPickerTemplate:n.default.template("pp-form-builder-material-icon"),events:{"click .pp-form-cancel-btn":"cancel_settings","click .pp-form-buider-settings-popup-tab-menu":"switch_tab","click .pp-form-save-btn":"save_changes","click .pp-form-control-icon-picker":"icon_picker","keyup input[name=label].pp-form-control":"make_label_placeholder"},initialize:function(e){if(void 0===e.fieldType)throw new Error("Field Type required");this.options=e,_.bindAll(this,"switch_tab"),_.bindAll(this,"save_changes"),_.bindAll(this,"icon_picker")},icon_picker:function(e){e.preventDefault();var t=this,i=a.default(e.target);(t.jboxInstance=new jBox("Modal",{title:a.default("#pp-form-material-icon-picker-tmpl-title").html(),maxWidth:600,zIndex:999999999,addClass:"pp-icon-picker-jbox-wrap",overlayClass:"pp-icon-picker-jbox-overlay",animation:"zoomIn",content:a.default("#pp-form-material-icon-picker-tmpl"),onOpen:function(){var e=a.default("input.pp-form-control",i.parent()),l=e.val(),d=a.default("#pp-form-material-icon-picker-tmpl");d.find(".pp-form-material-icon-wrap").removeClass("pp-active"),""!==l&&d.find('.pp-form-material-icon-wrap[data-material-icon="'+l+'"]').addClass("pp-active"),a.default(".pp-form-material-icon-wrap").click((function(){var l=a.default(this).data("material-icon");i.html(t.iconPickerTemplate({icon:l})),e.val(l),t.jboxInstance.close()}))}})).open()},save_changes:function(e){e.preventDefault();var t=this;a.default(".pp-form-control").each((function(){var e=a.default(this).attr("name"),i=a.default(this).val();"checkbox"===a.default(this).attr("type")&&(i=this.checked),void 0!==e&&t.options.model.set(e,i)})),a.default("#label",this.$el).length>0?t.options.model.set("fieldBarTitle",a.default("#label",this.$el).val()):t.options.model.set("fieldBarTitle",a.default("#placeholder",this.$el).val()),t.remove()},switch_tab:function(e){e.preventDefault(),a.default(".pp-form-buider-settings-popup-tab-menu",this.$el).removeClass("active"),a.default(e.target).addClass("active"),a.default(".pp-form-buider-settings-popup-tab-content",this.$el).hide(),a.default(a.default(e.target).attr("href")).show()},make_label_placeholder:function(e){e.preventDefault();var t=a.default("input[name=placeholder]",this.$el);!0!==this.$el.data("make_label_placeholder_flag")&&this.$el.data("make_label_placeholder_flag",""===t.val()),!0===this.$el.data("make_label_placeholder_flag")&&t.val(a.default(e.target).val())},cancel_settings_outside:function(e){e.target==this.el&&this.remove()},cancel_settings:function(e){e.preventDefault(),this.remove()},render:function(){var e=-1!==this.options.fieldType.indexOf("reg-cpf")?"reg-cpf":this.options.fieldType;e=-1!==e.indexOf("edit-profile-cpf")?"edit-profile-cpf":e;var t=this.options.model.get("definedFieldType");void 0!==t&&(e=e+"-"+t);var i=n.default.template("pp-form-builder-popup-settings-"+e);this.$el.html(i(this.options.model.toJSON())),a.default(".pp-form-buider-settings-popup-tab-menu",this.$el).eq(0).addClass("active"),a.default(".pp-form-buider-settings-popup-tab-content",this.$el).hide().eq(0).show()}}),p=d.default.View.extend({className:"pp-builder-element",template:n.default.template("pp-form-builder-field-bar"),events:{"click .pp-builder-element-expand-button.pp-settings":"reveal_settings","click .pp-builder-element-expand-button.pp-delete":"delete_field","click .pp-builder-element-expand-button.pp-clone":"clone_field"},reveal_settings:function(e){e.preventDefault(),a.default(e.target).parent("a").blur();var t=this.model.get("fieldType"),i=new r({fieldType:t,model:this.model});i.render(),a.default("body").append(i.$el);var l=a.default(".pp-form-control-wpeditor");l.length>0&&l.each((function(){var e=a.default(this).attr("id");a.default("#"+e).pp_wp_editor({mode:"tmce"}),tinymce.get(e).on("keyup change undo redo SetContent",(function(){this.save()}))}))},delete_field:function(e){e.preventDefault(),confirm(pp_form_builder.confirm_delete)&&(a.default(e.target).parent("a").blur(),this.remove(),this.collection.remove(this.model))},clone_field:function(e){e.preventDefault(),a.default(e.target).parent("a").blur(),this.collection.add(this.model.clone(),{at:this.collection.indexOf(this.model)})},render:function(){var e=this.model.get("fieldType"),t=void 0!==pp_form_builder_combined_fields[e]&&"undefined"!==pp_form_builder_combined_fields[e].fieldTitle?pp_form_builder_combined_fields[e].fieldTitle:this.model.get("fieldTitle");this.$el.html(this.template({fieldType:e,fieldTitle:t,fieldIcon:this.model.get("fieldIcon"),fieldBarTitle:this.model.get("fieldBarTitle")})).data("modelCID",this.model.cid)}}),s=function(e,t,i,l){var a=i.findWhere({fieldType:"footer"}),d="pp_form_builder_"+t+"_fields";l=void 0!==l?l:i.indexOf(a);var n=_.extend(window[d][e],{fieldType:e});i.add(n,{at:l,sort:!1})},f=function(e){a.default("#pp-form-builder-fields-settings").val(JSON.stringify(e.toJSON())),a.default(".pp_edit_form form").submit()},c=d.default.View.extend({el:"#pp-form-builder",initialize:function(){_.bindAll(this,"update_sort_index"),_.bindAll(this,"addFieldOnDrop"),this.listenTo(this.collection,"add",this.render),this.listenTo(this.collection,"remove",this.render),this.listenTo(this.collection,"pp_fieldBarTitle_changed",this.render)},initSortable:function(){this.$el.sortable({items:".pp-builder-element",cursor:"move",placeholder:"pp-form-builder-drag-bg",update:this.update_sort_index,receive:this.addFieldOnDrop})},addFieldOnDrop:function(e,t){var i,l;0===t.helper.prev().length||void 0===t.helper.prev().data("modelCID")?i=0:(l=t.helper.prev().data("modelCID"),i=this.collection.get(l).get("sortID"));var a=t.helper.find("a").data("field-type"),d=t.helper.find("a").data("field-category");s(a,d,this.collection,i),this.update_sort_index(),t.helper.remove()},update_sort_index:function(){var e=this.collection;a.default(".pp-builder-form-content .pp-builder-element").each((function(t){t++;var i=a.default(this).data("modelCID");e.get(i).set("sortID",t)})),e.sort()},render:function(){var e=this.collection,t=[];e.each((function(i){var l=new p({model:i,collection:e});l.render(),t.push(l.el)})),this.$el.find(".pp-form-builder-body .pp-builder-form-content").html(t),this.initSortable()}}),u=d.default.View.extend({el:"#pp-form-builder-metabox",events:{"click .pp_upload_button":"media_upload"},initialize:function(){a.default(".pp-color-field",this.$el).wpColorPicker(),a.default(".ppselect2",this.$el).select2(),this.tabify(),new jBox("Tooltip",{attach:".pp-form-builder-help-tip",maxWidth:200,theme:"TooltipDark"}),a.default(".form-field .wp-picker-container",this.$el).parent(".pp-field-row-content").css("width","auto")},tabify:function(){a.default("ul.pp-tabs li a",this.$el).click((function(e){e.preventDefault(),a.default(".pp-form-builder_options_panel").hide(),a.default("#pp-form-builder-metabox ul.pp-tabs li").removeClass("active"),a.default(this).parent().addClass("active"),a.default(a.default(this).attr("href")).show()})).get(0).click()},media_upload:function(e){e.preventDefault();var t,i=a.default(e.target);t||(t=wp.media.frames.file_frame=wp.media({frame:"select",multiple:!1,library:{type:"image"}})).on("select",(function(){var e=t.state().get("selection").first().toJSON();i.parents(".pp_upload_field_container").find(".pp_upload_field").val(e.url)})),t.open()}}),m=d.default.View.extend({el:".pp-form-builder-sidebar-wrap",template:n.default.template("pp-form-builder-sidebar-fields-block"),events:{"click .pp-draggable-field":"add_field","click .pp-form-save-changes":"save_changes"},initialize:function(){this.listenTo(this.collection,"add",this.disable_active_standard_fields),this.listenTo(this.collection,"remove",this.enable_inactive_standard_fields)},initDraggable:function(){this.$el.find(".pp-draggable-field").draggable({connectToSortable:"#pp-form-builder",helper:"clone",revert:"invalid",delay:10,appendTo:"body",cursorAt:{top:-5,left:-10}})},add_field:function(e){if(e.preventDefault(),a.default(e.target).parent(".pp-draggable-field").hasClass("ui-draggable-disabled"))return!1;var t=a.default(e.target).data("field-type"),i=a.default(e.target).data("field-category");s(t,i,this.collection)},save_changes:function(e){e.preventDefault(),f(this.collection)},disable_active_standard_fields:function(){this.collection.each((function(e){var t=e.get("fieldType");o.default.contains(pp_form_builder_fields_multiple_addition,t)||(a.default('[data-field-type="'+t+'"]',"#pp-form-builder-standard-fields").attr("disabled","disabled").parent(".pp-draggable-field").draggable("disable"),a.default('[data-field-type="'+t+'"]',"#pp-form-builder-defined-fields").attr("disabled","disabled").parent(".pp-draggable-field").draggable("disable"))}))},enable_inactive_standard_fields:function(e){var t=e.get("fieldType");o.default.contains(pp_form_builder_fields_multiple_addition,t)||(a.default('[data-field-type="'+t+'"]',"#pp-form-builder-standard-fields").removeAttr("disabled","disabled").parent(".pp-draggable-field").draggable("enable"),a.default('[data-field-type="'+t+'"]',"#pp-form-builder-defined-fields").removeAttr("disabled","disabled").parent(".pp-draggable-field").draggable("enable"))},render:function(){var e=[this.template({fieldsBlockType:"standard",fields:pp_form_builder_standard_fields})];!1===o.default.isEmpty(pp_form_builder_defined_fields)&&e.push(this.template({fieldsBlockType:"defined",fields:pp_form_builder_defined_fields})),!1===o.default.isEmpty(pp_form_builder_wc_billing_fields)&&e.push(this.template({fieldsBlockType:"wc_billing",fields:pp_form_builder_wc_billing_fields})),!1===o.default.isEmpty(pp_form_builder_wc_shipping_fields)&&e.push(this.template({fieldsBlockType:"wc_shipping",fields:pp_form_builder_wc_shipping_fields})),this.$el.find("#pp-form-builder-sidebar-fields-block").html(e),this.initDraggable(),this.disable_active_standard_fields()}}),h=d.default.Model.extend({initialize:function(){this.on("change:fieldBarTitle",(function(e,t){this.trigger("pp_fieldBarTitle_changed")}))}}),b=d.default.Collection.extend({model:h}),v=function(){a.default("#title").each((function(){var e=a.default(this),t=a.default("#"+this.id+"-prompt-text");""===this.value&&t.removeClass("screen-reader-text"),t.click((function(){a.default(this).addClass("screen-reader-text"),e.focus()})),e.blur((function(){""===this.value&&t.removeClass("screen-reader-text")})),e.focus((function(){t.addClass("screen-reader-text")}))}))},g=function(){a.default(document).on("click",".pp-metabox-handle",(function(e){e.preventDefault();var t=a.default(this),i=a.default(".pp-metabox-handle"),l=a.default(this).parents(".pp-postbox-wrap");i.parents(".pp-postbox-wrap").find(".postbox-header").removeClass("postbox").removeClass("closed"),i.not(t).parents(".pp-postbox-wrap").addClass("closed"),l.hasClass("closed")?l.removeClass("closed"):l.addClass("closed")})),a.default("#pp-form-builder-standard-fields .pp-metabox-handle").click()},w=function(){var e=new b(pp_form_builder_fields_settings);window.ppFormSettings=e,e.comparator="sortID",new c({collection:e}).render(),new m({collection:e}).render(),a.default(document).on("click",".pp-form-save-changes",(function(e){e.preventDefault(),f(window.ppFormSettings)})),new u};a.default((function(){var e=a.default(".pp-dnd-form-builder-wrap");0!==e.length&&(w(),v(),g(),setTimeout((function(){e.css("opacity","1")}),500))}))}(jQuery,Backbone,wp,_);
|
assets/js/builder/src/views/sidebar-layout.js
CHANGED
@@ -26,6 +26,8 @@ export default Backbone.View.extend({
|
|
26 |
helper: 'clone',
|
27 |
revert: 'invalid',
|
28 |
delay: 10,
|
|
|
|
|
29 |
});
|
30 |
},
|
31 |
|
26 |
helper: 'clone',
|
27 |
revert: 'invalid',
|
28 |
delay: 10,
|
29 |
+
appendTo: "body",
|
30 |
+
cursorAt: { top: -5, left: -10 },
|
31 |
});
|
32 |
},
|
33 |
|
assets/js/frontend.js
CHANGED
@@ -69,6 +69,12 @@
|
|
69 |
});
|
70 |
};
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
this.toggle_password_visibility = function (e) {
|
73 |
e.preventDefault();
|
74 |
var input = $(this).parents('.pp-form-field-input-textarea-wrap').find('.pp-form-field');
|
@@ -254,6 +260,9 @@
|
|
254 |
} else {
|
255 |
$signup_form.before(response.message);
|
256 |
}
|
|
|
|
|
|
|
257 |
} else if ('redirect' in response) {
|
258 |
$signup_form.trigger('pp_registration_success', [response]);
|
259 |
window.location.assign(response.redirect)
|
@@ -290,7 +299,7 @@
|
|
290 |
|
291 |
$login_form.trigger('pp_login_form_error');
|
292 |
|
293 |
-
if('code' in response && response.code == 'pp2fa_auth_code_invalid') {
|
294 |
$login_form.find('.pp-2fa').show();
|
295 |
}
|
296 |
|
69 |
});
|
70 |
};
|
71 |
|
72 |
+
this.reset_form = function ($form) {
|
73 |
+
$form.find('input:text, input:password, input:file, select, textarea').val('');
|
74 |
+
$form.find('input:radio, input:checkbox')
|
75 |
+
.removeAttr('checked').removeAttr('selected');
|
76 |
+
};
|
77 |
+
|
78 |
this.toggle_password_visibility = function (e) {
|
79 |
e.preventDefault();
|
80 |
var input = $(this).parents('.pp-form-field-input-textarea-wrap').find('.pp-form-field');
|
260 |
} else {
|
261 |
$signup_form.before(response.message);
|
262 |
}
|
263 |
+
|
264 |
+
_this.reset_form($signup_form);
|
265 |
+
|
266 |
} else if ('redirect' in response) {
|
267 |
$signup_form.trigger('pp_registration_success', [response]);
|
268 |
window.location.assign(response.redirect)
|
299 |
|
300 |
$login_form.trigger('pp_login_form_error');
|
301 |
|
302 |
+
if ('code' in response && response.code == 'pp2fa_auth_code_invalid') {
|
303 |
$login_form.find('.pp-2fa').show();
|
304 |
}
|
305 |
|
assets/js/frontend.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){"use strict";!function($,e,
|
1 |
+
!function(){"use strict";!function($,e,t){(new function(){var a=this;this.init=function(){e.ppFormRecaptchaLoadCallback=this.recaptcha_processing,$(".pp-del-profile-avatar").click(this.delete_avatar),$(".pp-del-cover-image").click(this.delete_profile_image_cover),$(document).on("click",".has-password-visibility-icon .pp-form-material-icons",this.toggle_password_visibility),$(document.body).on("click","a.showlogin",(function(){$(".pp_wc_login").slideToggle()})),$(e).on("load resize",(function(){a.defaultUserProfileResponsive()})),"true"!==pp_ajax_form.disable_ajax_form&&($(document).on("submit",'form[data-pp-form-submit="login"]',this.ajax_login),$(document).on("submit",'form[data-pp-form-submit="signup"]',this.ajax_registration),$(document).on("submit",'form[data-pp-form-submit="passwordreset"]',this.ajax_password_reset),$(document).on("submit",'form[data-pp-form-submit="editprofile"]',this.ajax_edit_profile))},this.recaptcha_processing=function(){$(".pp-g-recaptcha").each((function(e,t){var s=$(t).attr("data-sitekey"),r=$(this).parents(".pp-form-container").find("form");if("v3"===$(t).attr("data-type"))r.find("input.pp-submit-form").on("click",(function(e){e.preventDefault(),a._add_processing_label(r),grecaptcha.ready((function(){grecaptcha.execute(s,{action:"form"}).then((function(e){r.find('[name="g-recaptcha-response"]').remove(),r.append($("<input>",{type:"hidden",value:e,name:"g-recaptcha-response"})),r.submit()}))}))}));else{var i=grecaptcha.render(t,{sitekey:s,theme:$(t).attr("data-theme"),size:$(t).attr("data-size")});r.on("pp_form_submitted",(function(){grecaptcha.reset(i)}))}}))},this.reset_form=function(e){e.find("input:text, input:password, input:file, select, textarea").val(""),e.find("input:radio, input:checkbox").removeAttr("checked").removeAttr("selected")},this.toggle_password_visibility=function(e){e.preventDefault();var t=$(this).parents(".pp-form-field-input-textarea-wrap").find(".pp-form-field");"password"===t.attr("type")?(t.attr("type","text"),$(this).text("visibility_off")):(t.attr("type","password"),$(this).text("visibility"))},this.ajax_edit_profile=function(t){if(void 0!==e.FormData&&e.FormData){t.preventDefault();var s=$('form[data-pp-form-submit="editprofile"]'),r=a.get_melange_id(s),i=new FormData(this);i.append("action","pp_ajax_editprofile"),i.append("nonce",pp_ajax_form.nonce),i.append("melange_id",r),$(".profilepress-edit-profile-status").remove(),$(".profilepress-edit-profile-success").remove(),""!==e.edit_profile_msg_class&&$("."+e.edit_profile_msg_class).remove(),a._add_processing_label(s),$.post({url:pp_ajax_form.ajaxurl,data:i,cache:!1,contentType:!1,enctype:"multipart/form-data",processData:!1,dataType:"json",success:function(t){s.trigger("pp_form_submitted"),s.trigger("pp_form_edit_profile_success",[s]),"avatar_url"in t&&""!==t.avatar_url&&($("img[data-del='avatar'], img.pp-user-avatar").attr("src",t.avatar_url),$("input[name=eup_avatar]",s).val("")),"cover_image_url"in t&&""!==t.cover_image_url&&($("img[data-del='cover-image'], img.pp-user-cover-image").attr("src",t.cover_image_url),$("input[name=eup_cover_image]",s).val(""),$(".profilepress-myaccount-has-cover-image",s).show(),$(".profilepress-myaccount-cover-image-empty",s).hide()),"message"in t&&(e.edit_profile_msg_class=$(t.message).attr("class"),s.before(t.message)),"redirect"in t&&(s.trigger("pp_edit_profile_success_before_redirect"),e.location.assign(t.redirect)),a._remove_processing_label(s)}},"json")}},this.ajax_password_reset=function(e){e.preventDefault();var t=$(this),s=a.get_melange_id(t),r="true"===t.find('input[name="is-pp-tab-widget"]').val(),i={action:"pp_ajax_passwordreset",data:$(this).serialize()+"&melange_id="+s};a._remove_status_notice(),t.parents(".pp-tab-widget-form").prev(".pp-tab-status").remove(),a._add_processing_label(t),$.post(pp_ajax_form.ajaxurl,i,(function(e){if(t.trigger("pp_form_submitted"),"object"!=typeof e)return a._remove_processing_label(t);if("message"in e){if(t.trigger("pp_password_reset_status"),r){var s=e.message.replace("profilepress-reset-status","pp-tab-status");t.parents(".pp-tab-widget-form").before(s)}else t.parents(".lucidContainer").length>0?t.parents(".lucidContainer").before(e.message):t.before(e.message);"status"in e&&!0===e.status&&t.hide(),$('input[name="user_login"]',t).val("")}a._remove_processing_label(t)}),"json")},this.ajax_registration=function(t){if(void 0!==e.FormData&&e.FormData){t.preventDefault();var s=$(this),r=a.get_melange_id(s),i=new FormData(this),p="true"===s.find('input[name="is-pp-tab-widget"]').val();i.append("action","pp_ajax_signup"),i.append("melange_id",r),a._remove_status_notice(),s.parents(".pp-tab-widget-form").prev(".pp-tab-status").remove(),a._add_processing_label(s),$.post({url:pp_ajax_form.ajaxurl,data:i,cache:!1,contentType:!1,enctype:"multipart/form-data",processData:!1,dataType:"json",success:function(t){if(s.trigger("pp_form_submitted"),"object"!=typeof t)return a._remove_processing_label(s);if("message"in t){if(s.trigger("pp_registration_error",[t]),s.trigger("pp_registration_ajax_response",[t]),p){var r=t.message.replace("profilepress-reg-status","pp-tab-status");s.parents(".pp-tab-widget-form").before(r)}else s.parents(".lucidContainer").length>0?s.parents(".lucidContainer").before(t.message):s.before(t.message);a.reset_form(s)}else"redirect"in t&&(s.trigger("pp_registration_success",[t]),e.location.assign(t.redirect));a._remove_processing_label(s)}})}},this.ajax_login=function(t){t.preventDefault();var s=$(this),r={action:"pp_ajax_login",data:$(this).serialize()},i="true"===s.find('input[name="is-pp-tab-widget"]').val();a._remove_status_notice(),a._add_processing_label(s),$.post(pp_ajax_form.ajaxurl,r,(function(t){if(s.trigger("pp_form_submitted"),null===t||"object"!=typeof t)return a._remove_processing_label(s);if("success"in t&&!0===t.success&&"redirect"in t)s.trigger("pp_login_form_success"),e.location.assign(t.redirect);else if(s.trigger("pp_login_form_error"),"code"in t&&"pp2fa_auth_code_invalid"==t.code&&s.find(".pp-2fa").show(),i){var r=t.message.replace("profilepress-login-status","pp-tab-status");s.parents(".pp-tab-widget-form").before(r)}else s.parents(".lucidContainer").length>0?s.parents(".lucidContainer").before(t.message):s.before(t.message);a._remove_processing_label(s)}),"json")},this.delete_avatar=function(e){e.preventDefault();var t=$(this).text(),a=$(this);e.preventDefault(),confirm(pp_ajax_form.confirm_delete)&&(a.is("button")&&a.text(pp_ajax_form.deleting_text),$.post(pp_ajax_form.ajaxurl,{action:"pp_del_avatar",nonce:pp_ajax_form.nonce}).done((function(e){"error"in e&&"nonce_failed"===e.error?(a.text(t),alert(pp_ajax_form.deleting_error)):"success"in e&&($("img[data-del='avatar']").attr("src",e.default),a.remove())})))},this.delete_profile_image_cover=function(e){e.preventDefault();var t=$(this).text(),a=$(this);e.preventDefault(),confirm(pp_ajax_form.confirm_delete)&&(a.is("button")&&a.text(pp_ajax_form.deleting_text),$.post(pp_ajax_form.ajaxurl,{action:"pp_del_cover_image",nonce:pp_ajax_form.nonce}).done((function(e){"error"in e&&"nonce_failed"===e.error&&(a.text(t),alert(pp_ajax_form.deleting_error)),"success"in e&&(""!==e.default?($("img[data-del='cover-image']").attr("src",e.default),a.parent().find(".profilepress-myaccount-has-cover-image").show(),a.parent().find(".profilepress-myaccount-cover-image-empty").hide()):(a.parent().find(".profilepress-myaccount-has-cover-image").hide(),a.parent().find(".profilepress-myaccount-cover-image-empty").show()),a.remove())})))},this.get_melange_id=function(e){var a=$("input.pp_melange_id",e).val();return a===t?"":a},this._add_processing_label=function(e){var t=e.find("input[data-pp-submit-label]");t.attr({value:t.data("pp-processing-label"),disabled:"disabled"}).css("opacity",".4")},this._remove_processing_label=function(e){var t=e.find("input[data-pp-submit-label]");t.attr("value",t.data("pp-submit-label")),t.attr({value:t.data("pp-submit-label"),disabled:null}).css("opacity","")},this._remove_status_notice=function(){$(".profilepress-login-status,.pp-tab-status,.profilepress-edit-profile-success,.profilepress-edit-profile-status,.pp-reset-success,.profilepress-reset-status,.profilepress-reg-status").remove()},this.defaultUserProfileResponsive=function(){$(".ppress-default-profile, .pp-member-directory").each((function(){var e=$(this),t=e.width();t<=340?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui340")):t<=500?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui500")):t<=800?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui800")):t<=960?(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960"),e.addClass("ppressui960")):t>960&&(e.removeClass("ppressui340"),e.removeClass("ppressui500"),e.removeClass("ppressui800"),e.removeClass("ppressui960")),e.css("opacity",1)})),$(".ppress-default-profile-cover, .ppress-default-profile-cover-e").each((function(){var e=$(this),t=Math.round(e.width()/e.data("ratio"))+"px";e.height(t),e.find(".ppress-dpf-cover-add").height(t)}))}}).init()}(jQuery,window,void 0)}();
|
changelog.txt
CHANGED
@@ -1,4 +1,14 @@
|
|
1 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
* Fixed bug where redirect after login settings not getting cleared.
|
3 |
* Fixed bug with wp_title user profile output.
|
4 |
* Fixed bug where content restriction didn't work in some cases.
|
1 |
== Changelog ==
|
2 |
+
|
3 |
+
= 3.2.8 =
|
4 |
+
* Fixed bug with content restriction shortcode not working correctly.
|
5 |
+
* Fixed bug with item dragging in the form builder.
|
6 |
+
* Added: Clear form after registration.
|
7 |
+
* Added action hook to email template.
|
8 |
+
* [Pro](https://profilepress.net/addons/passwordless-login/) Added enabling/disabling of passwordless login per form.
|
9 |
+
* [Pro](https://profilepress.net/addons/woocommerce/) support for replacing the registration form in WooCommerce my account page
|
10 |
+
|
11 |
+
= 3.2.7 =
|
12 |
* Fixed bug where redirect after login settings not getting cleared.
|
13 |
* Fixed bug with wp_title user profile output.
|
14 |
* Fixed bug where content restriction didn't work in some cases.
|
languages/wp-user-avatar.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the ProfilePress package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: ProfilePress 3.2.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
|
7 |
-
"POT-Creation-Date: 2022-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -535,52 +535,52 @@ msgid ""
|
|
535 |
"\" target=\"_blank\">WordPress.org</a> to help us spread the word."
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
539 |
msgid "Form title cannot empty"
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
543 |
msgid "Changes saved"
|
544 |
msgstr ""
|
545 |
|
546 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
547 |
msgid "Select Icon"
|
548 |
msgstr ""
|
549 |
|
550 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
551 |
#: src/Functions/GlobalFunctions.php:1294
|
552 |
#: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:202
|
553 |
msgid "Standard Fields"
|
554 |
msgstr ""
|
555 |
|
556 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
557 |
msgid "Extra Fields"
|
558 |
msgstr ""
|
559 |
|
560 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
561 |
#: src/Classes/ExtensionManager.php:55 src/Functions/GlobalFunctions.php:1297
|
562 |
#: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:216
|
563 |
msgid "Custom Fields"
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
567 |
msgid "WooCommerce Billing Address"
|
568 |
msgstr ""
|
569 |
|
570 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
571 |
msgid "WooCommerce Shipping Address"
|
572 |
msgstr ""
|
573 |
|
574 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
575 |
msgid "No custom field available. %sClick here to create one%s."
|
576 |
msgstr ""
|
577 |
|
578 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
579 |
msgid "Enter title here"
|
580 |
msgstr ""
|
581 |
|
582 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
583 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
584 |
#: src/Admin/SettingsPages/EmailSettings/CustomizerTrait.php:11
|
585 |
#: src/AdminBarDashboardAccess/include.settings-page.php:54
|
586 |
#: src/AdminBarDashboardAccess/include.settings-page.php:109
|
@@ -589,72 +589,72 @@ msgstr ""
|
|
589 |
msgid "Save Changes"
|
590 |
msgstr ""
|
591 |
|
592 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
593 |
msgid ""
|
594 |
"Copy this shortcode and paste it into your post, page, or text widget "
|
595 |
"content:"
|
596 |
msgstr ""
|
597 |
|
598 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
599 |
msgid "Delete Form"
|
600 |
msgstr ""
|
601 |
|
602 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
603 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
604 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
605 |
msgid "Success Message"
|
606 |
msgstr ""
|
607 |
|
608 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
609 |
msgid "New User Role"
|
610 |
msgstr ""
|
611 |
|
612 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
613 |
msgid "Role users registered through this form will be assigned."
|
614 |
msgstr ""
|
615 |
|
616 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
617 |
msgid "Username Requirement"
|
618 |
msgstr ""
|
619 |
|
620 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
621 |
msgid "Check to disable username requirement"
|
622 |
msgstr ""
|
623 |
|
624 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
625 |
msgid ""
|
626 |
"Disable requirement for users to enter a username during registration. "
|
627 |
"Usernames will automatically be generated from their email addresses."
|
628 |
msgstr ""
|
629 |
|
630 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
631 |
#: src/Admin/SettingsPages/GeneralSettings.php:178
|
632 |
msgid "Registration Settings"
|
633 |
msgstr ""
|
634 |
|
635 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
636 |
msgid "Edit Profile Settings"
|
637 |
msgstr ""
|
638 |
|
639 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
640 |
#: src/Classes/ExtensionManager.php:85
|
641 |
msgid "Passwordless Login"
|
642 |
msgstr ""
|
643 |
|
644 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
645 |
msgid "Check to make this a passwordless login form."
|
646 |
msgstr ""
|
647 |
|
648 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
649 |
#: src/Admin/SettingsPages/GeneralSettings.php:192
|
650 |
msgid "Login Settings"
|
651 |
msgstr ""
|
652 |
|
653 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
654 |
msgid "Password Reset Settings"
|
655 |
msgstr ""
|
656 |
|
657 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
658 |
#: src/Admin/SettingsPages/DragDropBuilder/Fields/CheckboxList.php:35
|
659 |
#: src/Admin/SettingsPages/DragDropBuilder/Fields/Country.php:35
|
660 |
#: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Checkbox.php:50
|
@@ -668,34 +668,34 @@ msgstr ""
|
|
668 |
msgid "Label"
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
672 |
msgid "Processing Label"
|
673 |
msgstr ""
|
674 |
|
675 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
676 |
msgid "Submit Button"
|
677 |
msgstr ""
|
678 |
|
679 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
680 |
msgid "Appearance"
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
684 |
msgid "Colors"
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
688 |
#: src/Themes/DragDrop/AbstractBuildScratch.php:533
|
689 |
#: src/Themes/DragDrop/Login/PerfectoLite.php:51
|
690 |
#: src/Themes/DragDrop/Registration/PerfectoLite.php:53
|
691 |
msgid "Text"
|
692 |
msgstr ""
|
693 |
|
694 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
695 |
msgid "Visual"
|
696 |
msgstr ""
|
697 |
|
698 |
-
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:
|
699 |
msgid "Add Media"
|
700 |
msgstr ""
|
701 |
|
@@ -4594,7 +4594,7 @@ msgstr ""
|
|
4594 |
msgid "The password you entered is incorrect."
|
4595 |
msgstr ""
|
4596 |
|
4597 |
-
#: src/ShortcodeParser/FormProcessor.php:
|
4598 |
msgid "Authentication failed. Please try again"
|
4599 |
msgstr ""
|
4600 |
|
@@ -5538,9 +5538,9 @@ msgstr ""
|
|
5538 |
msgid "ProfilePress"
|
5539 |
msgstr ""
|
5540 |
|
5541 |
-
#. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.2.
|
5542 |
#. Plugin URI of the plugin/theme
|
5543 |
-
#. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.2.
|
5544 |
#. Author URI of the plugin/theme
|
5545 |
msgid "https://profilepress.net"
|
5546 |
msgstr ""
|
2 |
# This file is distributed under the same license as the ProfilePress package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: ProfilePress 3.2.8\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
|
7 |
+
"POT-Creation-Date: 2022-02-14 09:49:33+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
535 |
"\" target=\"_blank\">WordPress.org</a> to help us spread the word."
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:169
|
539 |
msgid "Form title cannot empty"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:188
|
543 |
msgid "Changes saved"
|
544 |
msgstr ""
|
545 |
|
546 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1175
|
547 |
msgid "Select Icon"
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1203
|
551 |
#: src/Functions/GlobalFunctions.php:1294
|
552 |
#: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:202
|
553 |
msgid "Standard Fields"
|
554 |
msgstr ""
|
555 |
|
556 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1204
|
557 |
msgid "Extra Fields"
|
558 |
msgstr ""
|
559 |
|
560 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1206
|
561 |
#: src/Classes/ExtensionManager.php:55 src/Functions/GlobalFunctions.php:1297
|
562 |
#: src/Themes/DragDrop/AbstractMemberDirectoryTheme.php:216
|
563 |
msgid "Custom Fields"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1207
|
567 |
msgid "WooCommerce Billing Address"
|
568 |
msgstr ""
|
569 |
|
570 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1208
|
571 |
msgid "WooCommerce Shipping Address"
|
572 |
msgstr ""
|
573 |
|
574 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1231
|
575 |
msgid "No custom field available. %sClick here to create one%s."
|
576 |
msgstr ""
|
577 |
|
578 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1259
|
579 |
msgid "Enter title here"
|
580 |
msgstr ""
|
581 |
|
582 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1261
|
583 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1288
|
584 |
#: src/Admin/SettingsPages/EmailSettings/CustomizerTrait.php:11
|
585 |
#: src/AdminBarDashboardAccess/include.settings-page.php:54
|
586 |
#: src/AdminBarDashboardAccess/include.settings-page.php:109
|
589 |
msgid "Save Changes"
|
590 |
msgstr ""
|
591 |
|
592 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1266
|
593 |
msgid ""
|
594 |
"Copy this shortcode and paste it into your post, page, or text widget "
|
595 |
"content:"
|
596 |
msgstr ""
|
597 |
|
598 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1291
|
599 |
msgid "Delete Form"
|
600 |
msgstr ""
|
601 |
|
602 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1349
|
603 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1388
|
604 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1440
|
605 |
msgid "Success Message"
|
606 |
msgstr ""
|
607 |
|
608 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1355
|
609 |
msgid "New User Role"
|
610 |
msgstr ""
|
611 |
|
612 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1356
|
613 |
msgid "Role users registered through this form will be assigned."
|
614 |
msgstr ""
|
615 |
|
616 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1363
|
617 |
msgid "Username Requirement"
|
618 |
msgstr ""
|
619 |
|
620 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1364
|
621 |
msgid "Check to disable username requirement"
|
622 |
msgstr ""
|
623 |
|
624 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1365
|
625 |
msgid ""
|
626 |
"Disable requirement for users to enter a username during registration. "
|
627 |
"Usernames will automatically be generated from their email addresses."
|
628 |
msgstr ""
|
629 |
|
630 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1372
|
631 |
#: src/Admin/SettingsPages/GeneralSettings.php:178
|
632 |
msgid "Registration Settings"
|
633 |
msgstr ""
|
634 |
|
635 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1395
|
636 |
msgid "Edit Profile Settings"
|
637 |
msgstr ""
|
638 |
|
639 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1413
|
640 |
#: src/Classes/ExtensionManager.php:85
|
641 |
msgid "Passwordless Login"
|
642 |
msgstr ""
|
643 |
|
644 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1414
|
645 |
msgid "Check to make this a passwordless login form."
|
646 |
msgstr ""
|
647 |
|
648 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1424
|
649 |
#: src/Admin/SettingsPages/GeneralSettings.php:192
|
650 |
msgid "Login Settings"
|
651 |
msgstr ""
|
652 |
|
653 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1447
|
654 |
msgid "Password Reset Settings"
|
655 |
msgstr ""
|
656 |
|
657 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1468
|
658 |
#: src/Admin/SettingsPages/DragDropBuilder/Fields/CheckboxList.php:35
|
659 |
#: src/Admin/SettingsPages/DragDropBuilder/Fields/Country.php:35
|
660 |
#: src/Admin/SettingsPages/DragDropBuilder/Fields/DefinedFieldTypes/Checkbox.php:50
|
668 |
msgid "Label"
|
669 |
msgstr ""
|
670 |
|
671 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1474
|
672 |
msgid "Processing Label"
|
673 |
msgstr ""
|
674 |
|
675 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1481
|
676 |
msgid "Submit Button"
|
677 |
msgstr ""
|
678 |
|
679 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1488
|
680 |
msgid "Appearance"
|
681 |
msgstr ""
|
682 |
|
683 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1495
|
684 |
msgid "Colors"
|
685 |
msgstr ""
|
686 |
|
687 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1523
|
688 |
#: src/Themes/DragDrop/AbstractBuildScratch.php:533
|
689 |
#: src/Themes/DragDrop/Login/PerfectoLite.php:51
|
690 |
#: src/Themes/DragDrop/Registration/PerfectoLite.php:53
|
691 |
msgid "Text"
|
692 |
msgstr ""
|
693 |
|
694 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1524
|
695 |
msgid "Visual"
|
696 |
msgstr ""
|
697 |
|
698 |
+
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1525
|
699 |
msgid "Add Media"
|
700 |
msgstr ""
|
701 |
|
4594 |
msgid "The password you entered is incorrect."
|
4595 |
msgstr ""
|
4596 |
|
4597 |
+
#: src/ShortcodeParser/FormProcessor.php:190
|
4598 |
msgid "Authentication failed. Please try again"
|
4599 |
msgstr ""
|
4600 |
|
5538 |
msgid "ProfilePress"
|
5539 |
msgstr ""
|
5540 |
|
5541 |
+
#. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.2.8) #-#-#-#-#
|
5542 |
#. Plugin URI of the plugin/theme
|
5543 |
+
#. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.2.8) #-#-#-#-#
|
5544 |
#. Author URI of the plugin/theme
|
5545 |
msgid "https://profilepress.net"
|
5546 |
msgstr ""
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: user registration, user profile, registration form, membership, login form
|
|
5 |
Requires at least: 4.7
|
6 |
Requires PHP: 7.1.0
|
7 |
Tested up to: 5.9
|
8 |
-
Stable tag: 3.2.
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
|
@@ -118,6 +118,14 @@ No. You can create and manage your forms, user profiles and member directories w
|
|
118 |
|
119 |
== Changelog ==
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
= 3.2.7 =
|
122 |
* Fixed bug where redirect after login settings not getting cleared.
|
123 |
* Fixed bug with wp_title user profile output.
|
5 |
Requires at least: 4.7
|
6 |
Requires PHP: 7.1.0
|
7 |
Tested up to: 5.9
|
8 |
+
Stable tag: 3.2.8
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
|
118 |
|
119 |
== Changelog ==
|
120 |
|
121 |
+
= 3.2.8 =
|
122 |
+
* Fixed bug with content restriction shortcode not working correctly.
|
123 |
+
* Fixed bug with item dragging in the form builder.
|
124 |
+
* Added: Clear form after registration.
|
125 |
+
* Added action hook to email template.
|
126 |
+
* [Pro](https://profilepress.net/addons/passwordless-login/) Added enabling/disabling of passwordless login per form.
|
127 |
+
* [Pro](https://profilepress.net/addons/woocommerce/) support for replacing the registration form in WooCommerce my account page
|
128 |
+
|
129 |
= 3.2.7 =
|
130 |
* Fixed bug where redirect after login settings not getting cleared.
|
131 |
* Fixed bug with wp_title user profile output.
|
src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
namespace ProfilePress\Core\Admin\SettingsPages\DragDropBuilder;
|
4 |
|
5 |
use ProfilePress\Core\Admin\SettingsPages\FormList;
|
|
|
6 |
use ProfilePress\Core\Classes\ExtensionManager as EM;
|
7 |
use ProfilePress\Core\Classes\FormRepository as FR;
|
8 |
use ProfilePress\Core\Classes\PROFILEPRESS_sql;
|
@@ -1234,7 +1235,9 @@ class DragDropBuilder
|
|
1234 |
<# } else { #>
|
1235 |
<# _.each(data.fields, function(field, key) {#>
|
1236 |
<li class="pp-draggable-field">
|
1237 |
-
<a href="#" class="button" data-field-category="{{{data.fieldsBlockType}}}" data-field-type="{{{ key }}}">{{{
|
|
|
|
|
1238 |
</li>
|
1239 |
<# }); #>
|
1240 |
<# } #>
|
@@ -1400,16 +1403,21 @@ class DragDropBuilder
|
|
1400 |
|
1401 |
public function login_settings()
|
1402 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1403 |
$metabox_settings = wp_list_sort(
|
1404 |
-
apply_filters('ppress_form_builder_meta_box_login_settings',
|
1405 |
-
[
|
1406 |
-
'id' => FR::PASSWORDLESS_LOGIN,
|
1407 |
-
'type' => 'checkbox',
|
1408 |
-
'label' => esc_html__('Passwordless Login', 'wp-user-avatar'),
|
1409 |
-
'checkbox_label' => esc_html__('Check to make this a passwordless login form.', 'wp-user-avatar'),
|
1410 |
-
'priority' => 5
|
1411 |
-
]
|
1412 |
-
]),
|
1413 |
['priority' => 'ASC']
|
1414 |
);
|
1415 |
|
3 |
namespace ProfilePress\Core\Admin\SettingsPages\DragDropBuilder;
|
4 |
|
5 |
use ProfilePress\Core\Admin\SettingsPages\FormList;
|
6 |
+
use ProfilePress\Core\Classes\ExtensionManager;
|
7 |
use ProfilePress\Core\Classes\ExtensionManager as EM;
|
8 |
use ProfilePress\Core\Classes\FormRepository as FR;
|
9 |
use ProfilePress\Core\Classes\PROFILEPRESS_sql;
|
1235 |
<# } else { #>
|
1236 |
<# _.each(data.fields, function(field, key) {#>
|
1237 |
<li class="pp-draggable-field">
|
1238 |
+
<a href="#" class="button" data-field-category="{{{data.fieldsBlockType}}}" data-field-type="{{{ key }}}">{{{
|
1239 |
+
field
|
1240 |
+
.fieldTitle}}}</a>
|
1241 |
</li>
|
1242 |
<# }); #>
|
1243 |
<# } #>
|
1403 |
|
1404 |
public function login_settings()
|
1405 |
{
|
1406 |
+
$settings = [];
|
1407 |
+
|
1408 |
+
if (ExtensionManager::is_enabled(ExtensionManager::PASSWORDLESS_LOGIN)) {
|
1409 |
+
|
1410 |
+
$settings[] = [
|
1411 |
+
'id' => FR::PASSWORDLESS_LOGIN,
|
1412 |
+
'type' => 'checkbox',
|
1413 |
+
'label' => esc_html__('Passwordless Login', 'wp-user-avatar'),
|
1414 |
+
'checkbox_label' => esc_html__('Check to make this a passwordless login form.', 'wp-user-avatar'),
|
1415 |
+
'priority' => 5
|
1416 |
+
];
|
1417 |
+
}
|
1418 |
+
|
1419 |
$metabox_settings = wp_list_sort(
|
1420 |
+
apply_filters('ppress_form_builder_meta_box_login_settings', $settings),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1421 |
['priority' => 'ASC']
|
1422 |
);
|
1423 |
|
src/Classes/WelcomeEmailAfterSignup.php
CHANGED
@@ -58,6 +58,6 @@ class WelcomeEmailAfterSignup
|
|
58 |
|
59 |
$message = $this->parse_placeholders($message);
|
60 |
|
61 |
-
|
62 |
}
|
63 |
}
|
58 |
|
59 |
$message = $this->parse_placeholders($message);
|
60 |
|
61 |
+
ppress_send_email($this->wp_user->user_email, $subject, $message);
|
62 |
}
|
63 |
}
|
src/Classes/default-email-template.php
CHANGED
@@ -239,6 +239,9 @@ $footer_text = DT::get_customizer_value('footer_text');
|
|
239 |
width: 100% !important;
|
240 |
}
|
241 |
}
|
|
|
|
|
|
|
242 |
</style>
|
243 |
<!--[if mso]>
|
244 |
<style type="text/css">
|
239 |
width: 100% !important;
|
240 |
}
|
241 |
}
|
242 |
+
|
243 |
+
<?php do_action('ppress_send_email_default_template_style'); ?>
|
244 |
+
|
245 |
</style>
|
246 |
<!--[if mso]>
|
247 |
<style type="text/css">
|
src/ContentProtection/Frontend/RestrictionShortcode.php
CHANGED
@@ -17,11 +17,11 @@ class RestrictionShortcode
|
|
17 |
'action' => 'show' // value can be "show" or "hide"
|
18 |
), $atts);
|
19 |
|
20 |
-
if ($
|
21 |
-
return ($atts['
|
|
|
|
|
22 |
}
|
23 |
-
|
24 |
-
return '';
|
25 |
}
|
26 |
|
27 |
public function rule_matches($roles = [], $user_ids = [])
|
17 |
'action' => 'show' // value can be "show" or "hide"
|
18 |
), $atts);
|
19 |
|
20 |
+
if ($atts['action'] == 'hide') {
|
21 |
+
return $this->rule_matches($atts['roles'], $atts['users']) ? '' : \do_shortcode($content);
|
22 |
+
} else {
|
23 |
+
return $this->rule_matches($atts['roles'], $atts['users']) ? \do_shortcode($content) : '';
|
24 |
}
|
|
|
|
|
25 |
}
|
26 |
|
27 |
public function rule_matches($roles = [], $user_ids = [])
|
src/ShortcodeParser/FormProcessor.php
CHANGED
@@ -175,6 +175,11 @@ class FormProcessor
|
|
175 |
$this->registration_form_error[$form_id] = $response;
|
176 |
|
177 |
self::set_global_state($state_key, $response, $form_id);
|
|
|
|
|
|
|
|
|
|
|
178 |
}
|
179 |
}
|
180 |
}
|
175 |
$this->registration_form_error[$form_id] = $response;
|
176 |
|
177 |
self::set_global_state($state_key, $response, $form_id);
|
178 |
+
|
179 |
+
if(strpos($response, 'profilepress-reg-status success') !== false) {
|
180 |
+
// clears form after registration
|
181 |
+
$_POST = [];
|
182 |
+
}
|
183 |
}
|
184 |
}
|
185 |
}
|
src/ShortcodeParser/MelangeTag.php
CHANGED
@@ -93,6 +93,8 @@ class MelangeTag extends FormProcessor
|
|
93 |
$structure = FR::get_form_meta($id, FR::MELANGE_TYPE, FR::FORM_STRUCTURE);
|
94 |
}
|
95 |
|
|
|
|
|
96 |
$GLOBALS['pp_melange_form_id'] = $id;
|
97 |
$GLOBALS['pp_melange_form_redirect'] = $redirect;
|
98 |
|
93 |
$structure = FR::get_form_meta($id, FR::MELANGE_TYPE, FR::FORM_STRUCTURE);
|
94 |
}
|
95 |
|
96 |
+
$structure .= "<input type='hidden' name='melange_form_id' value='$id'>";
|
97 |
+
|
98 |
$GLOBALS['pp_melange_form_id'] = $id;
|
99 |
$GLOBALS['pp_melange_form_redirect'] = $redirect;
|
100 |
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit086b35c3fc9ae167454ce62fc7fcb235::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit55c70b7a6700dbaebb732084d9197424
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
-
call_user_func(\Composer\Autoload\
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit55c70b7a6700dbaebb732084d9197424
|
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
-
$includeFiles = Composer\Autoload\
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
-
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
-
function
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit086b35c3fc9ae167454ce62fc7fcb235
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInit086b35c3fc9ae167454ce62fc7fcb235', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit086b35c3fc9ae167454ce62fc7fcb235', 'loadClassLoader'));
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit086b35c3fc9ae167454ce62fc7fcb235::getInitializer($loader));
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit086b35c3fc9ae167454ce62fc7fcb235::$files;
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
+
composerRequire086b35c3fc9ae167454ce62fc7fcb235($fileIdentifier, $file);
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
+
function composerRequire086b35c3fc9ae167454ce62fc7fcb235($fileIdentifier, $file)
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
|
@@ -288,9 +288,9 @@ class ComposerStaticInit55c70b7a6700dbaebb732084d9197424
|
|
288 |
public static function getInitializer(ClassLoader $loader)
|
289 |
{
|
290 |
return \Closure::bind(function () use ($loader) {
|
291 |
-
$loader->prefixLengthsPsr4 =
|
292 |
-
$loader->prefixDirsPsr4 =
|
293 |
-
$loader->classMap =
|
294 |
|
295 |
}, null, ClassLoader::class);
|
296 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit086b35c3fc9ae167454ce62fc7fcb235
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
|
288 |
public static function getInitializer(ClassLoader $loader)
|
289 |
{
|
290 |
return \Closure::bind(function () use ($loader) {
|
291 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit086b35c3fc9ae167454ce62fc7fcb235::$prefixLengthsPsr4;
|
292 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit086b35c3fc9ae167454ce62fc7fcb235::$prefixDirsPsr4;
|
293 |
+
$loader->classMap = ComposerStaticInit086b35c3fc9ae167454ce62fc7fcb235::$classMap;
|
294 |
|
295 |
}, null, ClassLoader::class);
|
296 |
}
|
vendor/composer/installed.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
'type' => 'library',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => '
|
9 |
'name' => '__root__',
|
10 |
'dev' => false,
|
11 |
),
|
@@ -16,7 +16,7 @@
|
|
16 |
'type' => 'library',
|
17 |
'install_path' => __DIR__ . '/../../',
|
18 |
'aliases' => array(),
|
19 |
-
'reference' => '
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'collizo4sky/persist-admin-notices-dismissal' => array(
|
5 |
'type' => 'library',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
+
'reference' => 'd060c0c1bf3242258599cdc607bce5eae3d3b5ac',
|
9 |
'name' => '__root__',
|
10 |
'dev' => false,
|
11 |
),
|
16 |
'type' => 'library',
|
17 |
'install_path' => __DIR__ . '/../../',
|
18 |
'aliases' => array(),
|
19 |
+
'reference' => 'd060c0c1bf3242258599cdc607bce5eae3d3b5ac',
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'collizo4sky/persist-admin-notices-dismissal' => array(
|
wp-user-avatar.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: ProfilePress
|
4 |
* Plugin URI: https://profilepress.net
|
5 |
* Description: The modern WordPress membership and user profile plugin.
|
6 |
-
* Version: 3.2.
|
7 |
* Author: ProfilePress Team
|
8 |
* Author URI: https://profilepress.net
|
9 |
* Text Domain: wp-user-avatar
|
@@ -14,7 +14,7 @@
|
|
14 |
defined('ABSPATH') or die("No script kiddies please!");
|
15 |
|
16 |
define('PROFILEPRESS_SYSTEM_FILE_PATH', __FILE__);
|
17 |
-
define('PPRESS_VERSION_NUMBER', '3.2.
|
18 |
|
19 |
require __DIR__ . '/vendor/autoload.php';
|
20 |
|
3 |
* Plugin Name: ProfilePress
|
4 |
* Plugin URI: https://profilepress.net
|
5 |
* Description: The modern WordPress membership and user profile plugin.
|
6 |
+
* Version: 3.2.8
|
7 |
* Author: ProfilePress Team
|
8 |
* Author URI: https://profilepress.net
|
9 |
* Text Domain: wp-user-avatar
|
14 |
defined('ABSPATH') or die("No script kiddies please!");
|
15 |
|
16 |
define('PROFILEPRESS_SYSTEM_FILE_PATH', __FILE__);
|
17 |
+
define('PPRESS_VERSION_NUMBER', '3.2.8');
|
18 |
|
19 |
require __DIR__ . '/vendor/autoload.php';
|
20 |
|