Plugin Directory

Changeset 3386991


Ignore:
Timestamp:
10/30/2025 10:40:31 AM (4 months ago)
Author:
optimole
Message:

Update to version 4.1.2 from GitHub

Location:
optimole-wp
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • optimole-wp/tags/4.1.2/inc/lazyload_replacer.php

    r3375733 r3386991  
    525525                if ( is_file( $filepath ) ) {
    526526                    $sizes = getimagesize( $filepath );
    527                     error_log( 'get_svg_for: ' . var_export( $sizes, true ) . ' ' . $url );
    528527                    wp_cache_add( $key, [ $sizes[0], $sizes[1] ], 'optml_sources', DAY_IN_SECONDS );
    529528                }
  • optimole-wp/tags/4.1.2/inc/url_replacer.php

    r3375733 r3386991  
    268268        if ( ! empty( $args['resize'] ) ) {
    269269            $this->apply_resize( $image, $args['resize'] );
     270        } elseif ( $this->settings->is_smart_cropping() ) {
     271            // If smart cropping is enabled and no resize is set, we apply smart focus since the resize can be triggered from the JS library.
     272            $image->smartFocus();
    270273        }
    271274
  • optimole-wp/tags/4.1.2/optimole-wp.php

    r3378645 r3386991  
    33 * Plugin Name:       Image optimization service by Optimole
    44 * Description:       Complete handling of your website images.
    5  * Version:           4.1.1
     5 * Version:           4.1.2
    66 * Author:            Optimole
    77 * Author URI:        https://optimole.com
     
    9090    define( 'OPTML_URL', plugin_dir_url( __FILE__ ) );
    9191    define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
    92     define( 'OPTML_VERSION', '4.1.1' );
     92    define( 'OPTML_VERSION', '4.1.2' );
    9393    define( 'OPTML_NAMESPACE', 'optml' );
    9494    define( 'OPTML_BASEFILE', __FILE__ );
  • optimole-wp/tags/4.1.2/readme.txt

    r3378645 r3386991  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 4.1.1
     7Stable tag: 4.1.2
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    250250== Changelog ==
    251251
    252 ##### [Version 4.1.1](https://github.com/Codeinwp/optimole-wp/compare/v4.1.0...v4.1.1) (2025-10-15)
    253 
    254 - Enhanced security
     252##### [Version 4.1.2](https://github.com/Codeinwp/optimole-wp/compare/v4.1.1...v4.1.2) (2025-10-30)
     253
     254- Remove redundant error log messages
     255- Fix Smart Crop persistence on auto resize images.
    255256
    256257
  • optimole-wp/tags/4.1.2/vendor/codeinwp/optimole-sdk/src/Optimole.php

    r3272237 r3386991  
    3434     * The Optimole SDK version.
    3535     */
    36     public const VERSION = '1.2.2';
     36    public const VERSION = '1.2.3';
    3737
    3838    /**
  • optimole-wp/tags/4.1.2/vendor/codeinwp/optimole-sdk/src/Resource/Image.php

    r3272237 r3386991  
    9494
    9595    /**
     96     * Set the smart focus gravity of the optimized image.
     97     */
     98    public function smartFocus()
     99    {
     100        $this->addProperty(new ImageProperty\GravityProperty('sm'));
     101
     102        return $this;
     103    }
     104
     105    /**
    96106     * Whether to strip the original image metadata from the optimized image.
    97107     */
  • optimole-wp/tags/4.1.2/vendor/composer/installed.json

    r3375733 r3386991  
    33        {
    44            "name": "codeinwp/optimole-sdk",
    5             "version": "v1.2.2",
    6             "version_normalized": "1.2.2.0",
     5            "version": "v1.2.3",
     6            "version_normalized": "1.2.3.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/Codeinwp/optimole-php-sdk.git",
    10                 "reference": "567557f1067c934a564154dd292a3f343749b538"
    11             },
    12             "dist": {
    13                 "type": "zip",
    14                 "url": "https://api.github.com/repos/Codeinwp/optimole-php-sdk/zipball/567557f1067c934a564154dd292a3f343749b538",
    15                 "reference": "567557f1067c934a564154dd292a3f343749b538",
     10                "reference": "901d1f2223df875f8ea65998a76049b0341f8dd7"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/Codeinwp/optimole-php-sdk/zipball/901d1f2223df875f8ea65998a76049b0341f8dd7",
     15                "reference": "901d1f2223df875f8ea65998a76049b0341f8dd7",
    1616                "shasum": ""
    1717            },
     
    3333                "guzzlehttp/guzzle": "Use the Guzzle HTTP client to make requests to the API"
    3434            },
    35             "time": "2025-03-28T18:31:54+00:00",
     35            "time": "2025-10-15T19:48:30+00:00",
    3636            "type": "library",
    3737            "installation-source": "dist",
  • optimole-wp/tags/4.1.2/vendor/composer/installed.php

    r3375733 r3386991  
    1212    'versions' => array(
    1313        'codeinwp/optimole-sdk' => array(
    14             'pretty_version' => 'v1.2.2',
    15             'version' => '1.2.2.0',
    16             'reference' => '567557f1067c934a564154dd292a3f343749b538',
     14            'pretty_version' => 'v1.2.3',
     15            'version' => '1.2.3.0',
     16            'reference' => '901d1f2223df875f8ea65998a76049b0341f8dd7',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../codeinwp/optimole-sdk',
  • optimole-wp/trunk/inc/lazyload_replacer.php

    r3375733 r3386991  
    525525                if ( is_file( $filepath ) ) {
    526526                    $sizes = getimagesize( $filepath );
    527                     error_log( 'get_svg_for: ' . var_export( $sizes, true ) . ' ' . $url );
    528527                    wp_cache_add( $key, [ $sizes[0], $sizes[1] ], 'optml_sources', DAY_IN_SECONDS );
    529528                }
  • optimole-wp/trunk/inc/url_replacer.php

    r3375733 r3386991  
    268268        if ( ! empty( $args['resize'] ) ) {
    269269            $this->apply_resize( $image, $args['resize'] );
     270        } elseif ( $this->settings->is_smart_cropping() ) {
     271            // If smart cropping is enabled and no resize is set, we apply smart focus since the resize can be triggered from the JS library.
     272            $image->smartFocus();
    270273        }
    271274
  • optimole-wp/trunk/optimole-wp.php

    r3378645 r3386991  
    33 * Plugin Name:       Image optimization service by Optimole
    44 * Description:       Complete handling of your website images.
    5  * Version:           4.1.1
     5 * Version:           4.1.2
    66 * Author:            Optimole
    77 * Author URI:        https://optimole.com
     
    9090    define( 'OPTML_URL', plugin_dir_url( __FILE__ ) );
    9191    define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
    92     define( 'OPTML_VERSION', '4.1.1' );
     92    define( 'OPTML_VERSION', '4.1.2' );
    9393    define( 'OPTML_NAMESPACE', 'optml' );
    9494    define( 'OPTML_BASEFILE', __FILE__ );
  • optimole-wp/trunk/readme.txt

    r3378645 r3386991  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 4.1.1
     7Stable tag: 4.1.2
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    250250== Changelog ==
    251251
    252 ##### [Version 4.1.1](https://github.com/Codeinwp/optimole-wp/compare/v4.1.0...v4.1.1) (2025-10-15)
    253 
    254 - Enhanced security
     252##### [Version 4.1.2](https://github.com/Codeinwp/optimole-wp/compare/v4.1.1...v4.1.2) (2025-10-30)
     253
     254- Remove redundant error log messages
     255- Fix Smart Crop persistence on auto resize images.
    255256
    256257
  • optimole-wp/trunk/vendor/codeinwp/optimole-sdk/src/Optimole.php

    r3272237 r3386991  
    3434     * The Optimole SDK version.
    3535     */
    36     public const VERSION = '1.2.2';
     36    public const VERSION = '1.2.3';
    3737
    3838    /**
  • optimole-wp/trunk/vendor/codeinwp/optimole-sdk/src/Resource/Image.php

    r3272237 r3386991  
    9494
    9595    /**
     96     * Set the smart focus gravity of the optimized image.
     97     */
     98    public function smartFocus()
     99    {
     100        $this->addProperty(new ImageProperty\GravityProperty('sm'));
     101
     102        return $this;
     103    }
     104
     105    /**
    96106     * Whether to strip the original image metadata from the optimized image.
    97107     */
  • optimole-wp/trunk/vendor/composer/installed.json

    r3375733 r3386991  
    33        {
    44            "name": "codeinwp/optimole-sdk",
    5             "version": "v1.2.2",
    6             "version_normalized": "1.2.2.0",
     5            "version": "v1.2.3",
     6            "version_normalized": "1.2.3.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/Codeinwp/optimole-php-sdk.git",
    10                 "reference": "567557f1067c934a564154dd292a3f343749b538"
    11             },
    12             "dist": {
    13                 "type": "zip",
    14                 "url": "https://api.github.com/repos/Codeinwp/optimole-php-sdk/zipball/567557f1067c934a564154dd292a3f343749b538",
    15                 "reference": "567557f1067c934a564154dd292a3f343749b538",
     10                "reference": "901d1f2223df875f8ea65998a76049b0341f8dd7"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/Codeinwp/optimole-php-sdk/zipball/901d1f2223df875f8ea65998a76049b0341f8dd7",
     15                "reference": "901d1f2223df875f8ea65998a76049b0341f8dd7",
    1616                "shasum": ""
    1717            },
     
    3333                "guzzlehttp/guzzle": "Use the Guzzle HTTP client to make requests to the API"
    3434            },
    35             "time": "2025-03-28T18:31:54+00:00",
     35            "time": "2025-10-15T19:48:30+00:00",
    3636            "type": "library",
    3737            "installation-source": "dist",
  • optimole-wp/trunk/vendor/composer/installed.php

    r3375733 r3386991  
    1212    'versions' => array(
    1313        'codeinwp/optimole-sdk' => array(
    14             'pretty_version' => 'v1.2.2',
    15             'version' => '1.2.2.0',
    16             'reference' => '567557f1067c934a564154dd292a3f343749b538',
     14            'pretty_version' => 'v1.2.3',
     15            'version' => '1.2.3.0',
     16            'reference' => '901d1f2223df875f8ea65998a76049b0341f8dd7',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../codeinwp/optimole-sdk',
Note: See TracChangeset for help on using the changeset viewer.