From 2cf3afa493aadc15fc41495c29a03c23a0f8ae14 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Mon, 28 Oct 2024 17:21:10 +0000 Subject: [PATCH 1/4] Do not deliver SVGs when image delivery is disabled --- php/class-delivery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/class-delivery.php b/php/class-delivery.php index d25a8861..5e0a0295 100644 --- a/php/class-delivery.php +++ b/php/class-delivery.php @@ -369,7 +369,7 @@ public function is_deliverable( $attachment_id ) { $svg = $this->plugin->get_component( 'svg' ); - if ( ! $is && $svg->is_active() && $svg::is_svg( $attachment_id ) ) { + if ( ! $is && $svg->is_active() && $svg::is_svg( $attachment_id ) && 'on' === $this->plugin->settings->get_value( 'image_delivery' ) ) { $is = true; } From 2b862b200e4963aacf4a7160b3bbf434616e9029 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Mon, 28 Oct 2024 17:21:31 +0000 Subject: [PATCH 2/4] Update wording --- src/js/components/featured-image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/components/featured-image.js b/src/js/components/featured-image.js index 30280ee3..a5735a01 100644 --- a/src/js/components/featured-image.js +++ b/src/js/components/featured-image.js @@ -13,7 +13,7 @@ let FeaturedTransformationsToggle = ( props ) => { { props.modalClass && ( Date: Mon, 28 Oct 2024 17:21:53 +0000 Subject: [PATCH 3/4] Update compiled assets --- js/block-editor.asset.php | 2 +- js/block-editor.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/block-editor.asset.php b/js/block-editor.asset.php index 913c05c1..d0eeaa57 100644 --- a/js/block-editor.asset.php +++ b/js/block-editor.asset.php @@ -1 +1 @@ - array('react', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => '87ba7d528e0425bc85ca'); + array('react', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => '37e2404e0016dbc6780b'); diff --git a/js/block-editor.js b/js/block-editor.js index 6740bb39..a84ca859 100644 --- a/js/block-editor.js +++ b/js/block-editor.js @@ -1 +1 @@ -!function(){"use strict";var t={};function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==e(r)?r:r+""}function n(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},t.d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var o=window.React,i=t.n(o),a=window.wp.i18n,c=window.wp.data,u=window.wp.components;function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r Date: Mon, 28 Oct 2024 17:22:29 +0000 Subject: [PATCH 4/4] Update plugin version --- .version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.version b/.version index 7f171fbd..8cc08441 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -3.2.2-build-3 \ No newline at end of file +3.2.2-build-4 \ No newline at end of file