Plugin Directory

Changeset 3665713


Ignore:
Timestamp:
08/25/2026 04:39:19 PM (3 months ago)
Author:
arnoldasarny
Message:

Update to version 3.2.16 from GitHub

Location:
imageseo
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • imageseo/tags/3.2.16/imageseo.php

    r3653465 r3665713  
    66 * Description:              Optimize your images for search engines. Search engine optimization and web marketing strategy often neglect their images.
    77 * Author:                   WPChill
    8  * Version:                  3.2.15
     8 * Version:                  3.2.16
    99 * Author URI:               https://www.wpchill.com/
    1010 * License:                  GPLv3 or later
    … …  
    5656define( 'IMAGESEO_SLUG', 'imageseo' );
    5757define( 'IMAGESEO_OPTION_GROUP', 'group-imageseo' );
    58 define( 'IMAGESEO_VERSION', '3.2.15' );
     58define( 'IMAGESEO_VERSION', '3.2.16' );
    5959define( 'IMAGESEO_PHP_MIN', '7.4' );
    6060define( 'IMAGESEO_DEBUG', false );
  • imageseo/tags/3.2.16/readme.txt

    r3653465 r3665713  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 3.2.15
     7Stable tag: 3.2.16
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    … …  
    114114
    115115== 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
    116121= 3.2.15 - 18.08.2026 =
    117122* 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  
    5656                $extension = $this->generateFilename->getExtensionFilenameByAttachmentId( $attachmentId );
    5757                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                        );
    5868                        return;
    5969                }
  • imageseo/tags/3.2.16/src/Services/File/GenerateFilename.php

    r3011770 r3665713  
    6464
    6565        $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        }
    6679
    6780        return basename($srcFile);
  • imageseo/trunk/imageseo.php

    r3653465 r3665713  
    66 * Description:              Optimize your images for search engines. Search engine optimization and web marketing strategy often neglect their images.
    77 * Author:                   WPChill
    8  * Version:                  3.2.15
     8 * Version:                  3.2.16
    99 * Author URI:               https://www.wpchill.com/
    1010 * License:                  GPLv3 or later
    … …  
    5656define( 'IMAGESEO_SLUG', 'imageseo' );
    5757define( 'IMAGESEO_OPTION_GROUP', 'group-imageseo' );
    58 define( 'IMAGESEO_VERSION', '3.2.15' );
     58define( 'IMAGESEO_VERSION', '3.2.16' );
    5959define( 'IMAGESEO_PHP_MIN', '7.4' );
    6060define( 'IMAGESEO_DEBUG', false );
  • imageseo/trunk/readme.txt

    r3653465 r3665713  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 3.2.15
     7Stable tag: 3.2.16
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    … …  
    114114
    115115== 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
    116121= 3.2.15 - 18.08.2026 =
    117122* 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  
    5656                $extension = $this->generateFilename->getExtensionFilenameByAttachmentId( $attachmentId );
    5757                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                        );
    5868                        return;
    5969                }
  • imageseo/trunk/src/Services/File/GenerateFilename.php

    r3011770 r3665713  
    6464
    6565        $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        }
    6679
    6780        return basename($srcFile);
Note: See TracChangeset for help on using the changeset viewer.