Changeset 3665713
- Timestamp:
- 08/25/2026 04:39:19 PM (3 months ago)
- Location:
- imageseo
- Files:
-
- 8 edited
- 1 copied
-
tags/3.2.16 (copied) (copied from imageseo/trunk )
-
tags/3.2.16/imageseo.php (modified) (2 diffs)
-
tags/3.2.16/readme.txt (modified) (2 diffs)
-
tags/3.2.16/src/Processes/OnUploadImage.php (modified) (1 diff)
-
tags/3.2.16/src/Services/File/GenerateFilename.php (modified) (1 diff)
-
trunk/imageseo.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Processes/OnUploadImage.php (modified) (1 diff)
-
trunk/src/Services/File/GenerateFilename.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
imageseo/tags/3.2.16/imageseo.php
r3653465 r3665713 6 6 * Description: Optimize your images for search engines. Search engine optimization and web marketing strategy often neglect their images. 7 7 * Author: WPChill 8 * Version: 3.2.1 58 * Version: 3.2.16 9 9 * Author URI: https://www.wpchill.com/ 10 10 * License: GPLv3 or later … … 56 56 define( 'IMAGESEO_SLUG', 'imageseo' ); 57 57 define( 'IMAGESEO_OPTION_GROUP', 'group-imageseo' ); 58 define( 'IMAGESEO_VERSION', '3.2.1 5' );58 define( 'IMAGESEO_VERSION', '3.2.16' ); 59 59 define( 'IMAGESEO_PHP_MIN', '7.4' ); 60 60 define( 'IMAGESEO_DEBUG', false ); -
imageseo/tags/3.2.16/readme.txt
r3653465 r3665713 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 3.2.1 57 Stable tag: 3.2.16 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 114 114 115 115 == Changelog == 116 117 = 3.2.16 - 25.08.2026 = 118 * Fix: image generation silently skipped every image on sites where a CDN or performance plugin appends a cache-busting query string (e.g. photo.webp?ver=123) to attachment URLs — the file extension is now derived from the URL path only. This affected automatic alt text on upload AND the manual Optimize button. 119 * The on-upload extension rejection now logs a line to the PHP error log instead of failing silently. 120 116 121 = 3.2.15 - 18.08.2026 = 117 122 * Fix: the "Visit website" link in the settings screen pointed at a domain that no longer exists; it now opens imageseo.io. -
imageseo/tags/3.2.16/src/Processes/OnUploadImage.php
r3194885 r3665713 56 56 $extension = $this->generateFilename->getExtensionFilenameByAttachmentId( $attachmentId ); 57 57 if ( ! in_array( $extension, array( 'png', 'jpg', 'jpeg', 'webp' ) ) ) { 58 // This rejection used to be COMPLETELY silent, which let a broken 59 // extension derivation kill every auto-generation for months with 60 // no trace anywhere. Leave at least a log line behind. 61 error_log( 62 sprintf( 63 'ImageSEO: auto alt on upload SKIPPED attachment %d — unsupported extension "%s"', 64 $attachmentId, 65 $extension 66 ) 67 ); 58 68 return; 59 69 } -
imageseo/tags/3.2.16/src/Services/File/GenerateFilename.php
r3011770 r3665713 64 64 65 65 $srcFile = $file[0]; 66 67 // Cache-busting filters (a CDN or performance plugin hooking the 68 // attachment-URL functions) can append a query string, e.g. 69 // "photo.webp?ver=1787662837". basename() keeps that suffix, the 70 // derived "extension" becomes "webp?ver=1787662837", and every 71 // generation path that whitelists png/jpg/jpeg/webp silently drops 72 // the image (real case: a paying customer lost ALL auto alt text for 73 // three months after their host added such a filter). Take the URL 74 // path only before deriving the filename. 75 $path = wp_parse_url($srcFile, PHP_URL_PATH); 76 if (is_string($path) && '' !== $path) { 77 $srcFile = $path; 78 } 66 79 67 80 return basename($srcFile); -
imageseo/trunk/imageseo.php
r3653465 r3665713 6 6 * Description: Optimize your images for search engines. Search engine optimization and web marketing strategy often neglect their images. 7 7 * Author: WPChill 8 * Version: 3.2.1 58 * Version: 3.2.16 9 9 * Author URI: https://www.wpchill.com/ 10 10 * License: GPLv3 or later … … 56 56 define( 'IMAGESEO_SLUG', 'imageseo' ); 57 57 define( 'IMAGESEO_OPTION_GROUP', 'group-imageseo' ); 58 define( 'IMAGESEO_VERSION', '3.2.1 5' );58 define( 'IMAGESEO_VERSION', '3.2.16' ); 59 59 define( 'IMAGESEO_PHP_MIN', '7.4' ); 60 60 define( 'IMAGESEO_DEBUG', false ); -
imageseo/trunk/readme.txt
r3653465 r3665713 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 3.2.1 57 Stable tag: 3.2.16 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 114 114 115 115 == Changelog == 116 117 = 3.2.16 - 25.08.2026 = 118 * Fix: image generation silently skipped every image on sites where a CDN or performance plugin appends a cache-busting query string (e.g. photo.webp?ver=123) to attachment URLs — the file extension is now derived from the URL path only. This affected automatic alt text on upload AND the manual Optimize button. 119 * The on-upload extension rejection now logs a line to the PHP error log instead of failing silently. 120 116 121 = 3.2.15 - 18.08.2026 = 117 122 * Fix: the "Visit website" link in the settings screen pointed at a domain that no longer exists; it now opens imageseo.io. -
imageseo/trunk/src/Processes/OnUploadImage.php
r3194885 r3665713 56 56 $extension = $this->generateFilename->getExtensionFilenameByAttachmentId( $attachmentId ); 57 57 if ( ! in_array( $extension, array( 'png', 'jpg', 'jpeg', 'webp' ) ) ) { 58 // This rejection used to be COMPLETELY silent, which let a broken 59 // extension derivation kill every auto-generation for months with 60 // no trace anywhere. Leave at least a log line behind. 61 error_log( 62 sprintf( 63 'ImageSEO: auto alt on upload SKIPPED attachment %d — unsupported extension "%s"', 64 $attachmentId, 65 $extension 66 ) 67 ); 58 68 return; 59 69 } -
imageseo/trunk/src/Services/File/GenerateFilename.php
r3011770 r3665713 64 64 65 65 $srcFile = $file[0]; 66 67 // Cache-busting filters (a CDN or performance plugin hooking the 68 // attachment-URL functions) can append a query string, e.g. 69 // "photo.webp?ver=1787662837". basename() keeps that suffix, the 70 // derived "extension" becomes "webp?ver=1787662837", and every 71 // generation path that whitelists png/jpg/jpeg/webp silently drops 72 // the image (real case: a paying customer lost ALL auto alt text for 73 // three months after their host added such a filter). Take the URL 74 // path only before deriving the filename. 75 $path = wp_parse_url($srcFile, PHP_URL_PATH); 76 if (is_string($path) && '' !== $path) { 77 $srcFile = $path; 78 } 66 79 67 80 return basename($srcFile);
Note:
See TracChangeset
for help on using the changeset viewer.