Changeset 2866926
- Timestamp:
- 02/17/2023 10:07:01 AM (3 years ago)
- Location:
- image-sizes
- Files:
-
- 105 added
- 6 edited
-
tags/4.0.3 (added)
-
tags/4.0.3/app (added)
-
tags/4.0.3/app/AJAX.php (added)
-
tags/4.0.3/app/Admin.php (added)
-
tags/4.0.3/app/Cron.php (added)
-
tags/4.0.3/app/Front.php (added)
-
tags/4.0.3/app/Settings.php (added)
-
tags/4.0.3/app/Wizard.php (added)
-
tags/4.0.3/assets (added)
-
tags/4.0.3/assets/css (added)
-
tags/4.0.3/assets/css/admin.css (added)
-
tags/4.0.3/assets/css/admin.min.css (added)
-
tags/4.0.3/assets/css/front.css (added)
-
tags/4.0.3/assets/css/front.min.css (added)
-
tags/4.0.3/assets/css/wizard.css (added)
-
tags/4.0.3/assets/css/wizard.min.css (added)
-
tags/4.0.3/assets/img (added)
-
tags/4.0.3/assets/img/arrow.png (added)
-
tags/4.0.3/assets/img/icon.png (added)
-
tags/4.0.3/assets/img/loader.gif (added)
-
tags/4.0.3/assets/js (added)
-
tags/4.0.3/assets/js/admin.js (added)
-
tags/4.0.3/assets/js/admin.min.js (added)
-
tags/4.0.3/build (added)
-
tags/4.0.3/build/index.asset.php (added)
-
tags/4.0.3/build/index.js (added)
-
tags/4.0.3/classes (added)
-
tags/4.0.3/classes/Helper.php (added)
-
tags/4.0.3/image-sizes.php (added)
-
tags/4.0.3/inc (added)
-
tags/4.0.3/inc/functions.php (added)
-
tags/4.0.3/readme.txt (added)
-
tags/4.0.3/uninstall.php (added)
-
tags/4.0.3/vendor (added)
-
tags/4.0.3/vendor/autoload.php (added)
-
tags/4.0.3/vendor/codexpert (added)
-
tags/4.0.3/vendor/codexpert/plugin (added)
-
tags/4.0.3/vendor/codexpert/plugin/.gitignore (added)
-
tags/4.0.3/vendor/codexpert/plugin/composer.json (added)
-
tags/4.0.3/vendor/codexpert/plugin/composer.lock (added)
-
tags/4.0.3/vendor/codexpert/plugin/readme.md (added)
-
tags/4.0.3/vendor/codexpert/plugin/src (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/Base.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/Deactivator.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/Feature.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/Fields.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/License.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/Metabox.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/Notice.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/Settings.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/Setup.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/Survey.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/Table.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/Update.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/Widget.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/css (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/css/deactivator.css (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/css/fields.css (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/css/license.css (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/css/notice.css (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/css/survey.css (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/css/wizard.css (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/img (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/img/checked.png (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/img/loading.gif (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/img/sorry.webp (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/img/survey.png (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/js (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/js/deactivator.js (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/js/fields.js (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/js/license.js (added)
-
tags/4.0.3/vendor/codexpert/plugin/src/assets/js/survey.js (added)
-
tags/4.0.3/vendor/codexpert/plugin/vendor (added)
-
tags/4.0.3/vendor/codexpert/plugin/vendor/autoload.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/vendor/composer (added)
-
tags/4.0.3/vendor/codexpert/plugin/vendor/composer/ClassLoader.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/vendor/composer/LICENSE (added)
-
tags/4.0.3/vendor/codexpert/plugin/vendor/composer/autoload_classmap.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/vendor/composer/autoload_namespaces.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/vendor/composer/autoload_psr4.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/vendor/composer/autoload_real.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/vendor/composer/autoload_static.php (added)
-
tags/4.0.3/vendor/codexpert/plugin/vendor/composer/installed.json (added)
-
tags/4.0.3/vendor/composer (added)
-
tags/4.0.3/vendor/composer/ClassLoader.php (added)
-
tags/4.0.3/vendor/composer/InstalledVersions.php (added)
-
tags/4.0.3/vendor/composer/LICENSE (added)
-
tags/4.0.3/vendor/composer/autoload_classmap.php (added)
-
tags/4.0.3/vendor/composer/autoload_namespaces.php (added)
-
tags/4.0.3/vendor/composer/autoload_psr4.php (added)
-
tags/4.0.3/vendor/composer/autoload_real.php (added)
-
tags/4.0.3/vendor/composer/autoload_static.php (added)
-
tags/4.0.3/vendor/composer/installed.json (added)
-
tags/4.0.3/vendor/composer/installed.php (added)
-
tags/4.0.3/vendor/composer/platform_check.php (added)
-
tags/4.0.3/views (added)
-
tags/4.0.3/views/index.php (added)
-
tags/4.0.3/views/settings (added)
-
tags/4.0.3/views/settings/disable-sizes.php (added)
-
tags/4.0.3/views/settings/regenerate-thumbnails.php (added)
-
tags/4.0.3/views/wizard (added)
-
tags/4.0.3/views/wizard/complete.php (added)
-
tags/4.0.3/views/wizard/disable-thumbnails.php (added)
-
tags/4.0.3/views/wizard/welcome.php (added)
-
trunk/app/AJAX.php (modified) (1 diff)
-
trunk/app/Front.php (modified) (1 diff)
-
trunk/assets/js/admin.js (modified) (10 diffs)
-
trunk/assets/js/admin.min.js (modified) (1 diff)
-
trunk/image-sizes.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
image-sizes/trunk/app/AJAX.php
r2863091 r2866926 44 44 ]; 45 45 46 if( !wp_verify_nonce( $_ GET['_nonce'], $this->slug ) ) {46 if( !wp_verify_nonce( $_POST['_nonce'], $this->slug ) ) { 47 47 $response['message'] = __( 'Unauthorized', 'image-sizes' ); 48 48 wp_send_json( $response ); 49 49 } 50 50 51 $offset = $this->sanitize( $_ GET['offset'] );52 $limit = $this->sanitize( $_ GET['limit'] );53 $thumbs_deleteds = $this->sanitize( $_ GET['thumbs_deleteds'] );54 $thumbs_createds = $this->sanitize( $_ GET['thumbs_createds'] );51 $offset = $this->sanitize( $_POST['offset'] ); 52 $limit = $this->sanitize( $_POST['limit'] ); 53 $thumbs_deleteds = $this->sanitize( $_POST['thumbs_deleteds'] ); 54 $thumbs_createds = $this->sanitize( $_POST['thumbs_createds'] ); 55 55 56 56 global $wpdb; -
image-sizes/trunk/app/Front.php
r2863091 r2866926 43 43 public function credit() { 44 44 45 if( Helper::get_option( 'image-sizes_tools', 'footer_credit' ) == 'no' ) return;45 if( Helper::get_option( 'image-sizes_tools', 'footer_credit' ) != 'yes' ) return; 46 46 47 47 $disclaimer = ' '; -
image-sizes/trunk/assets/js/admin.js
r2863091 r2866926 35 35 }); 36 36 37 // enable/disable37 // enable/disable 38 38 var chk_all = $(".check-all"); 39 39 var chk_def = $(".check-all-default"); … … 41 41 42 42 chk_all.change(function () { 43 $(".check-all-default,.check-all-custom") 44 .prop("checked", this.checked) 45 .change(); 43 $(".check-all-default,.check-all-custom").prop("checked", this.checked).change(); 46 44 }); 47 45 … … 56 54 }); 57 55 58 // counter 59 $(".check-this") 60 .change(function (e) { 56 $(".check-this").change(function (e) { 61 57 var total = $(".check-this").length; 62 58 var enabled = $(".check-this:not(:checked)").length; … … 65 61 $("#disabled-counter .counter").text(disabled); 66 62 $("#enabled-counter .counter").text(enabled); 67 }) 68 .change(); 63 }).change(); 69 64 70 65 var limit = $("#image-sizes_regenerate-thumbs-limit").val(); … … 74 69 }); 75 70 76 // var limit = 50; 71 77 72 var offset = 0; 78 73 var thumbs_deleted = 0; … … 82 77 $.ajax({ 83 78 url: THUMBPRESS.ajaxurl, 84 type: " GET",79 type: "POST", 85 80 data: { 86 81 action: "image_sizes-regen-thumbs", … … 94 89 if (res.has_image) { 95 90 var progress = (res.offset / res.total_images_count) * 100; 96 $(".image-sizes-progress-content") 97 .text(Math.ceil(progress) + "%") 98 .css({ width: progress + "%" }); 91 $(".image-sizes-progress-content").text(Math.ceil(progress) + "%").css({ width: progress + "%" }); 99 92 100 93 regenerate(limit, res.offset, res.thumbs_deleted, res.thumbs_created); 101 94 } else { 102 $("#image_sizes-regen-thumbs") 103 .text(THUMBPRESS.regen) 104 .attr("disabled", false); 105 $("#image_sizes-message").html(res.message).show(); 106 $( 107 ".image-sizes-progress-panel .image-sizes-progress-content" 108 ).addClass("progress-full"); 95 $("#image_sizes-regen-thumbs").text(THUMBPRESS.regen).attr("disabled", false); 96 $(".image-sizes-progress-panel .image-sizes-progress-content").addClass("progress-full"); 109 97 } 110 console.log(res);98 $("#image_sizes-message").html(res.message).show(); 111 99 }, 112 100 error: function (err) { 113 $("#image_sizes-regen-thumbs") 114 .text(THUMBPRESS.regen) 115 .attr("disabled", false); 116 console.log(err); 101 $("#image_sizes-regen-thumbs").text(THUMBPRESS.regen).attr("disabled", false); 117 102 }, 118 103 }); 119 104 } 120 105 121 // cx-regen-thumbs106 // cx-regen-thumbs 122 107 $("#image_sizes-regen-thumbs").click(function (e) { 123 $("#image_sizes-regen-thumbs") 124 .text(THUMBPRESS.regening) 125 .attr("disabled", true); 108 $("#image_sizes-regen-thumbs").text(THUMBPRESS.regening).attr("disabled", true); 126 109 $("#image_sizes-message").html("").hide(); 127 110 $(".image-sizes-progress-panel").hide(); … … 129 112 regenerate(limit, offset, thumbs_deleted, thumbs_created); 130 113 131 // $('#image_sizes-regen-wrap').append('<progress id="image_sizes-progress" value="0" max="100"></progress>'); 132 $("#image_sizes-message").before( 133 '<div class="image-sizes-progress-panel"><div class="image-sizes-progress-content" style="width:0%"><span>0%</span></div></div></div>' 134 ); 135 }); 136 137 // dismiss 114 $("#image_sizes-message").before('<div class="image-sizes-progress-panel"><div class="image-sizes-progress-content" style="width:0%"><span>0%</span></div></div></div>'); 115 }); 116 117 // dismiss 138 118 $(".image_sizes-dismiss").click(function (e) { 139 119 var $this = $(this); … … 162 142 $(document).on("click", "#cx-optimized", function (e) { 163 143 $("#cx-nav-label-image-sizes_optimize").trigger("click"); 164 });165 166 // show pro demo167 $(".image_sizes-action").click(function (e) {168 e.preventDefault();169 $("#image_sizes-optimize").attr("disabled", true);170 $("#image_sizes-pro-message").html("");171 172 var $form = $("#cx-free-optimize #cx-optimize");173 var $button = $(this);174 var $formData = $form.serializeArray();175 var $operation = $(this).attr("name") == "analyze" ? "analyze" : "optimize";176 $button177 .val(178 $operation == "optimize"179 ? THUMBPRESS.optimizing180 : THUMBPRESS.analyzing181 )182 .attr("disabled", true);183 $formData.push({ name: "operation", value: $operation });184 $.ajax({185 url: ajaxurl,186 type: "POST",187 data: $formData,188 dataType: "JSON",189 success: function (resp) {190 if (resp.status == 1) {191 $("#image_sizes-optimize").attr("disabled", false);192 }193 $button194 .val(195 $operation == "optimize"196 ? THUMBPRESS.optimize197 : THUMBPRESS.analyze198 )199 .attr("disabled", false);200 console.log(resp);201 $("#image_sizes-pro-message").html(resp.html);202 },203 error: function (err) {204 $button205 .val(206 $operation == "optimize"207 ? THUMBPRESS.optimize208 : THUMBPRESS.analyze209 )210 .attr("disabled", false);211 console.log(err);212 },213 });214 144 }); 215 145 … … 250 180 251 181 var _length = $("ul.image_sizes-sortable.disable li").length; 252 $(".image_sizes-default-thumbnails-panel h4 .disables-count").text( 253 _length 254 ); 182 $(".image_sizes-default-thumbnails-panel h4 .disables-count").text(_length); 255 183 256 184 var _length = $("ul.image_sizes-sortable.enable li").length; 257 $(".image_sizes-default-thumbnails-panel h4 .enables-count").text( 258 _length 259 ); 185 $(".image_sizes-default-thumbnails-panel h4 .enables-count").text(_length); 260 186 }, 261 187 }); -
image-sizes/trunk/assets/js/admin.min.js
r2863091 r2866926 1 let thumbpress_modal=(e=!0)=>{e?jQuery("#image-sizes-modal").show():jQuery("#image-sizes-modal").hide()};jQuery((function(e){e("#image-sizes_report-copy").click((function(s){s.preventDefault(),e("#image-sizes_tools-report").select();try{document.execCommand("copy")&&e(this).html('<span class="dashicons dashicons-saved"></span>')}catch(e){console.log("Oops, unable to copy!")}})),e(".image-sizes-help-heading").click((function(s){var t=e(this).data("target");e(".image-sizes-help-text:not("+t+")").slideUp(),e(t).is(":hidden")?e(t).slideDown():e(t).slideUp()}));var s=e(".check-all"),t=e(".check-all-default"),a=e(".check-all-custom");s.change((function(){e(".check-all-default,.check-all-custom").prop("checked",this.checked).change()})),t.change((function(){e(".check-default").prop("checked",this.checked),e(".check-this").change()})),a.change((function(){e(".check-custom").prop("checked",this.checked),e(".check-this").change()})),e(".check-this").change((function(s){e(".check-this").length;var t=e(".check-this:not(:checked)").length,a=e(".check-this:checked").length;e("#disabled-counter .counter").text(a),e("#enabled-counter .counter").text(t)})).change();var i=e("#image-sizes_regenerate-thumbs-limit").val();e("#image-sizes_regenerate-thumbs-limit").bind("keyup mouseup",(function(){i=e(this).val()}));function l(s,t,a,i){e.ajax({url:THUMBPRESS.ajaxurl,type:" GET",data:{action:"image_sizes-regen-thumbs",offset:t,limit:s,thumbs_deleteds:a,thumbs_createds:i,_nonce:THUMBPRESS.nonce},success:function(t){if(t.has_image){var a=t.offset/t.total_images_count*100;e(".image-sizes-progress-content").text(Math.ceil(a)+"%").css({width:a+"%"}),l(s,t.offset,t.thumbs_deleted,t.thumbs_created)}else e("#image_sizes-regen-thumbs").text(THUMBPRESS.regen).attr("disabled",!1),e("#image_sizes-message").html(t.message).show(),e(".image-sizes-progress-panel .image-sizes-progress-content").addClass("progress-full");console.log(t)},error:function(s){e("#image_sizes-regen-thumbs").text(THUMBPRESS.regen).attr("disabled",!1),console.log(s)}})}function n(s){s.draggable({connectToSortable:"#sortable2",stack:".draggable-item",revert:!0,revertDuration:200,start:function(s,t){e("#sortable1").sortable("disable")}})}e("#image_sizes-regen-thumbs").click((function(s){e("#image_sizes-regen-thumbs").text(THUMBPRESS.regening).attr("disabled",!0),e("#image_sizes-message").html("").hide(),e(".image-sizes-progress-panel").hide(),l(i,0,0,0),e("#image_sizes-message").before('<div class="image-sizes-progress-panel"><div class="image-sizes-progress-content" style="width:0%"><span>0%</span></div></div></div>')})),e(".image_sizes-dismiss").click((function(s){var t=e(this);t.parent().slideToggle(),e.ajax({url:THUMBPRESS.ajaxurl,data:{action:"image_sizes-dismiss",meta_key:t.data("meta_key"),_nonce:THUMBPRESS.nonce},type:"GET",success:function(e){console.log(e)},error:function(e){console.log(e)}})})),e("#image_sizes-regen-wrap span").click((function(s){alert(e(this).attr("title"))})),e(document).on("click","#cx-optimized",(function(s){e("#cx-nav-label-image-sizes_optimize").trigger("click")})),e(".image_sizes-action").click((function(s){s.preventDefault(),e("#image_sizes-optimize").attr("disabled",!0),e("#image_sizes-pro-message").html("");var t=e("#cx-free-optimize #cx-optimize"),a=e(this),i=t.serializeArray(),l="analyze"==e(this).attr("name")?"analyze":"optimize";a.val("optimize"==l?THUMBPRESS.optimizing:THUMBPRESS.analyzing).attr("disabled",!0),i.push({name:"operation",value:l}),e.ajax({url:ajaxurl,type:"POST",data:i,dataType:"JSON",success:function(s){1==s.status&&e("#image_sizes-optimize").attr("disabled",!1),a.val("optimize"==l?THUMBPRESS.optimize:THUMBPRESS.analyze).attr("disabled",!1),console.log(s),e("#image_sizes-pro-message").html(s.html)},error:function(e){a.val("optimize"==l?THUMBPRESS.optimize:THUMBPRESS.analyze).attr("disabled",!1),console.log(e)}})})),n(e(".draggable-item")),e("#sortable2").sortable({connectWith:"#sortable1, #sortable2",items:".draggable-item, .sortable-item",start:function(s,t){e("#sortable1").sortable("enable"),e("ul.image_sizes-sortable.disable li input").attr("name","disables[]");var a=e("ul.image_sizes-sortable.disable li").length-1;e(".image_sizes-default-thumbnails-panel h4 .disables-count").text(a);a=e("ul.image_sizes-sortable.enable li").length;e(".image_sizes-default-thumbnails-panel h4 .enables-count").text(a)},receive:function(e,s){s.item.hasClass("ui-draggable")&&s.item.draggable("destroy")}}),e("#sortable1").sortable({connectWith:"#sortable1, #sortable2",items:".draggable-item, .sortable-item",receive:function(s,t){e("#sortable1").sortable("disable"),n(t.item),e("ul.image_sizes-sortable.enable li input").attr("name","");var a=e("ul.image_sizes-sortable.disable li").length;e(".image_sizes-default-thumbnails-panel h4 .disables-count").text(a);a=e("ul.image_sizes-sortable.enable li").length;e(".image_sizes-default-thumbnails-panel h4 .enables-count").text(a)}})}));1 let thumbpress_modal=(e=!0)=>{e?jQuery("#image-sizes-modal").show():jQuery("#image-sizes-modal").hide()};jQuery((function(e){e("#image-sizes_report-copy").click((function(s){s.preventDefault(),e("#image-sizes_tools-report").select();try{document.execCommand("copy")&&e(this).html('<span class="dashicons dashicons-saved"></span>')}catch(e){console.log("Oops, unable to copy!")}})),e(".image-sizes-help-heading").click((function(s){var t=e(this).data("target");e(".image-sizes-help-text:not("+t+")").slideUp(),e(t).is(":hidden")?e(t).slideDown():e(t).slideUp()}));var s=e(".check-all"),t=e(".check-all-default"),a=e(".check-all-custom");s.change((function(){e(".check-all-default,.check-all-custom").prop("checked",this.checked).change()})),t.change((function(){e(".check-default").prop("checked",this.checked),e(".check-this").change()})),a.change((function(){e(".check-custom").prop("checked",this.checked),e(".check-this").change()})),e(".check-this").change((function(s){e(".check-this").length;var t=e(".check-this:not(:checked)").length,a=e(".check-this:checked").length;e("#disabled-counter .counter").text(a),e("#enabled-counter .counter").text(t)})).change();var i=e("#image-sizes_regenerate-thumbs-limit").val();e("#image-sizes_regenerate-thumbs-limit").bind("keyup mouseup",(function(){i=e(this).val()}));function l(s,t,a,i){e.ajax({url:THUMBPRESS.ajaxurl,type:"POST",data:{action:"image_sizes-regen-thumbs",offset:t,limit:s,thumbs_deleteds:a,thumbs_createds:i,_nonce:THUMBPRESS.nonce},success:function(t){if(t.has_image){var a=t.offset/t.total_images_count*100;e(".image-sizes-progress-content").text(Math.ceil(a)+"%").css({width:a+"%"}),l(s,t.offset,t.thumbs_deleted,t.thumbs_created)}else e("#image_sizes-regen-thumbs").text(THUMBPRESS.regen).attr("disabled",!1),e(".image-sizes-progress-panel .image-sizes-progress-content").addClass("progress-full");e("#image_sizes-message").html(t.message).show()},error:function(s){e("#image_sizes-regen-thumbs").text(THUMBPRESS.regen).attr("disabled",!1)}})}function n(s){s.draggable({connectToSortable:"#sortable2",stack:".draggable-item",revert:!0,revertDuration:200,start:function(s,t){e("#sortable1").sortable("disable")}})}e("#image_sizes-regen-thumbs").click((function(s){e("#image_sizes-regen-thumbs").text(THUMBPRESS.regening).attr("disabled",!0),e("#image_sizes-message").html("").hide(),e(".image-sizes-progress-panel").hide(),l(i,0,0,0),e("#image_sizes-message").before('<div class="image-sizes-progress-panel"><div class="image-sizes-progress-content" style="width:0%"><span>0%</span></div></div></div>')})),e(".image_sizes-dismiss").click((function(s){var t=e(this);t.parent().slideToggle(),e.ajax({url:THUMBPRESS.ajaxurl,data:{action:"image_sizes-dismiss",meta_key:t.data("meta_key"),_nonce:THUMBPRESS.nonce},type:"GET",success:function(e){console.log(e)},error:function(e){console.log(e)}})})),e("#image_sizes-regen-wrap span").click((function(s){alert(e(this).attr("title"))})),e(document).on("click","#cx-optimized",(function(s){e("#cx-nav-label-image-sizes_optimize").trigger("click")})),n(e(".draggable-item")),e("#sortable2").sortable({connectWith:"#sortable1, #sortable2",items:".draggable-item, .sortable-item",start:function(s,t){e("#sortable1").sortable("enable"),e("ul.image_sizes-sortable.disable li input").attr("name","disables[]");var a=e("ul.image_sizes-sortable.disable li").length-1;e(".image_sizes-default-thumbnails-panel h4 .disables-count").text(a);a=e("ul.image_sizes-sortable.enable li").length;e(".image_sizes-default-thumbnails-panel h4 .enables-count").text(a)},receive:function(e,s){s.item.hasClass("ui-draggable")&&s.item.draggable("destroy")}}),e("#sortable1").sortable({connectWith:"#sortable1, #sortable2",items:".draggable-item, .sortable-item",receive:function(s,t){e("#sortable1").sortable("disable"),n(t.item),e("ul.image_sizes-sortable.enable li input").attr("name","");var a=e("ul.image_sizes-sortable.disable li").length;e(".image_sizes-default-thumbnails-panel h4 .disables-count").text(a);a=e("ul.image_sizes-sortable.enable li").length;e(".image_sizes-default-thumbnails-panel h4 .enables-count").text(a)}})})); -
image-sizes/trunk/image-sizes.php
r2863273 r2866926 6 6 * Author: Codexpert, Inc 7 7 * Author URI: https://codexpert.io 8 * Version: 4.0. 28 * Version: 4.0.3 9 9 * Requires at least: 5.9 10 10 * Requires PHP: 7.4 -
image-sizes/trunk/readme.txt
r2863273 r2866926 5 5 Requires at least: 5.0 6 6 Tested up to: 6.0 7 Stable tag: 4.0. 27 Stable tag: 4.0.3 8 8 Requires PHP: 5.4 9 9 License: GPLv2 or later … … 71 71 == Changelog == 72 72 73 = 2023-02-17 - 4.0.3 = 74 * [imp] Regenerator imnproved 75 * [mod] Footer credit hidden by default 76 73 77 = 2023-02-10 - 4.0.2 = 74 78 * [fix] Error fixed
Note: See TracChangeset
for help on using the changeset viewer.