Plugin Directory

Changeset 3279073


Ignore:
Timestamp:
04/22/2025 12:58:07 PM (10 months ago)
Author:
optimole
Message:

Update to version 4.0.2 from GitHub

Location:
optimole-wp
Files:
14 deleted
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • optimole-wp/tags/4.0.2/inc/media_rename/attachment_edit.php

    r3272237 r3279073  
    8686     */
    8787    public function add_attachment_fields( $form_fields, $post ) {
     88        if ( ! function_exists( 'get_current_screen' ) ) {
     89            return $form_fields;
     90        }
     91
    8892        $screen = get_current_screen();
    8993
  • optimole-wp/tags/4.0.2/inc/tag_replacer.php

    r3276044 r3279073  
    8686        }
    8787        $sizes = Optml_App_Replacer::image_sizes();
    88 
     88        if ( OPTML_DEBUG ) {
     89            do_action( 'optml_log', 'filter_image_src_get_dimensions: ' . $image_src . ' ' . $width . ' ' . $height . ' ' . print_r( $image_meta, true ) );
     90        }
     91        if ( $width === 'auto' && $height === 'auto' && isset( $image_meta['width'], $image_meta['height'] ) ) {
     92            return [
     93                $image_meta['width'],
     94                $image_meta['height'],
     95            ];
     96        }
    8997        // If this is an image size. Return its dimensions.
    9098        foreach ( $sizes as $size => $args ) {
  • optimole-wp/tags/4.0.2/optimole-wp.php

    r3276044 r3279073  
    33 * Plugin Name:       Image optimization service by Optimole
    44 * Description:       Complete handling of your website images.
    5  * Version:           4.0.1
     5 * Version:           4.0.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.0.1' );
     92    define( 'OPTML_VERSION', '4.0.2' );
    9393    define( 'OPTML_NAMESPACE', 'optml' );
    9494    define( 'OPTML_BASEFILE', __FILE__ );
  • optimole-wp/tags/4.0.2/readme.txt

    r3276044 r3279073  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 4.0.1
     7Stable tag: 4.0.2
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    248248== Changelog ==
    249249
    250 ##### [Version 4.0.1](https://github.com/Codeinwp/optimole-wp/compare/v4.0.0...v4.0.1) (2025-04-17)
    251 
    252 Fix extraneous quotation mark in image URL when changing fetchpriority. 
    253 Fix resize behavior for certain image sizes that were improperly resized.
     250##### [Version 4.0.2](https://github.com/Codeinwp/optimole-wp/compare/v4.0.1...v4.0.2) (2025-04-22)
     251
     252- fatal error thrown because get_current_screen function is not loading in certain contexts
     253- enhance image dimension handling when the width-height attributes are not provided.
    254254
    255255
  • optimole-wp/trunk/inc/media_rename/attachment_edit.php

    r3272237 r3279073  
    8686     */
    8787    public function add_attachment_fields( $form_fields, $post ) {
     88        if ( ! function_exists( 'get_current_screen' ) ) {
     89            return $form_fields;
     90        }
     91
    8892        $screen = get_current_screen();
    8993
  • optimole-wp/trunk/inc/tag_replacer.php

    r3276044 r3279073  
    8686        }
    8787        $sizes = Optml_App_Replacer::image_sizes();
    88 
     88        if ( OPTML_DEBUG ) {
     89            do_action( 'optml_log', 'filter_image_src_get_dimensions: ' . $image_src . ' ' . $width . ' ' . $height . ' ' . print_r( $image_meta, true ) );
     90        }
     91        if ( $width === 'auto' && $height === 'auto' && isset( $image_meta['width'], $image_meta['height'] ) ) {
     92            return [
     93                $image_meta['width'],
     94                $image_meta['height'],
     95            ];
     96        }
    8997        // If this is an image size. Return its dimensions.
    9098        foreach ( $sizes as $size => $args ) {
  • optimole-wp/trunk/optimole-wp.php

    r3276044 r3279073  
    33 * Plugin Name:       Image optimization service by Optimole
    44 * Description:       Complete handling of your website images.
    5  * Version:           4.0.1
     5 * Version:           4.0.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.0.1' );
     92    define( 'OPTML_VERSION', '4.0.2' );
    9393    define( 'OPTML_NAMESPACE', 'optml' );
    9494    define( 'OPTML_BASEFILE', __FILE__ );
  • optimole-wp/trunk/readme.txt

    r3276044 r3279073  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 4.0.1
     7Stable tag: 4.0.2
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    248248== Changelog ==
    249249
    250 ##### [Version 4.0.1](https://github.com/Codeinwp/optimole-wp/compare/v4.0.0...v4.0.1) (2025-04-17)
    251 
    252 Fix extraneous quotation mark in image URL when changing fetchpriority. 
    253 Fix resize behavior for certain image sizes that were improperly resized.
     250##### [Version 4.0.2](https://github.com/Codeinwp/optimole-wp/compare/v4.0.1...v4.0.2) (2025-04-22)
     251
     252- fatal error thrown because get_current_screen function is not loading in certain contexts
     253- enhance image dimension handling when the width-height attributes are not provided.
    254254
    255255
Note: See TracChangeset for help on using the changeset viewer.