Plugin Directory

Changeset 3185220


Ignore:
Timestamp:
11/10/2024 06:13:19 PM (17 months ago)
Author:
sutolix
Message:

tagging version 1.0.2

Location:
webp-transformer
Files:
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • webp-transformer/tags/1.0.2/readme.txt

    r3185202 r3185220  
    44Requires at least: 6.0
    55Tested up to: 6.6.2
    6 Stable tag: 1.0.1
    7 Requires PHP: 8.1
     6Stable tag: 1.0.2
     7Requires PHP: 7.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2929== Changelog ==
    3030
     31= 1.0.2 =
     32*Release Date 10th November 2024*
     33
     34* Adjustments to be compatible with PHP versions from 7.4 onwards
     35
     36= 1.0.1 =
     37*Release Date 1th November 2024*
     38
     39* Add assets and structure to readme.txt and repository
     40
    3141= 1.0 =
    3242*Release Date 1th November 2024*
  • webp-transformer/tags/1.0.2/webp-transformer.php

    r3180057 r3185220  
    66Author: Informatiza Soluções Empresariais
    77Text Domain: webp-transformer
    8 Version: 1.0.1
     8Version: 1.0.2
    99Author URI: https://informatizaweb.com.br/
    1010License: GPLv2 or later
     
    3636            include_once WBPTF_PATH . 'pages/settings.php';
    3737
    38             add_action( 'init', array($this, 'load_textdomain'));
     38            add_action('init', array($this, 'load_textdomain'));
    3939            add_filter('plugin_action_links_' . plugin_basename(__FILE__), array($this, 'settings_link'));
    4040
     
    4646            add_filter('wp_handle_upload', [$this, 'convert_and_resize_image']);
    4747        }
    48        
     48
    4949        public function load_textdomain()
    5050        {
    51             load_plugin_textdomain( 'webp-transformer', false, dirname( plugin_basename(__FILE__)) . '/languages' );
     51            load_plugin_textdomain('webp-transformer', false, dirname(plugin_basename(__FILE__)) . '/languages');
    5252        }
    53        
     53
    5454        public function error_log($message)
    5555        {
    56             if(defined( 'WP_DEBUG' ) && WP_DEBUG === true) {
     56            if (defined('WP_DEBUG') && WP_DEBUG === true) {
    5757                // phpcs:disable WordPress.PHP.DevelopmentFunctions
    5858                error_log($message);
     
    6363        public function gd_extension_notice()
    6464        {
    65             ?>
    66                 <div class="notice notice-error">
    67                     <p><?php esc_html_e('The GD extension is not loaded. The Webp Transformer plugin will not function properly without it.', 'webp-transformer'); ?></p>
    68                 </div>
    69             <?php
     65?>
     66            <div class="notice notice-error">
     67                <p><?php esc_html_e('The GD extension is not loaded. The Webp Transformer plugin will not function properly without it.', 'webp-transformer'); ?></p>
     68            </div>
     69<?php
    7070        }
    7171
     
    102102                        $file['file'] = $webp_file_path;
    103103                        $file['type'] = 'image/webp';
    104                        
     104
    105105                        wp_delete_file($original_file_path);
    106106                    } else {
     
    125125                case 'image/png':
    126126                    $img = imagecreatefrompng($file_path);
    127                     imagepalettetotruecolor($img);
    128 
    129127                    return $img;
    130128                default:
     
    161159            $ignore_filename = wbptf_get_ignore_filename();
    162160
    163             return str_contains($base_name, $ignore_filename);
     161            return strpos($base_name, $ignore_filename) !== false;
    164162        }
    165163
  • webp-transformer/trunk/readme.txt

    r3185202 r3185220  
    44Requires at least: 6.0
    55Tested up to: 6.6.2
    6 Stable tag: 1.0.1
    7 Requires PHP: 8.1
     6Stable tag: 1.0.2
     7Requires PHP: 7.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2929== Changelog ==
    3030
     31= 1.0.2 =
     32*Release Date 10th November 2024*
     33
     34* Adjustments to be compatible with PHP versions from 7.4 onwards
     35
     36= 1.0.1 =
     37*Release Date 1th November 2024*
     38
     39* Add assets and structure to readme.txt and repository
     40
    3141= 1.0 =
    3242*Release Date 1th November 2024*
  • webp-transformer/trunk/webp-transformer.php

    r3180057 r3185220  
    66Author: Informatiza Soluções Empresariais
    77Text Domain: webp-transformer
    8 Version: 1.0.1
     8Version: 1.0.2
    99Author URI: https://informatizaweb.com.br/
    1010License: GPLv2 or later
     
    3636            include_once WBPTF_PATH . 'pages/settings.php';
    3737
    38             add_action( 'init', array($this, 'load_textdomain'));
     38            add_action('init', array($this, 'load_textdomain'));
    3939            add_filter('plugin_action_links_' . plugin_basename(__FILE__), array($this, 'settings_link'));
    4040
     
    4646            add_filter('wp_handle_upload', [$this, 'convert_and_resize_image']);
    4747        }
    48        
     48
    4949        public function load_textdomain()
    5050        {
    51             load_plugin_textdomain( 'webp-transformer', false, dirname( plugin_basename(__FILE__)) . '/languages' );
     51            load_plugin_textdomain('webp-transformer', false, dirname(plugin_basename(__FILE__)) . '/languages');
    5252        }
    53        
     53
    5454        public function error_log($message)
    5555        {
    56             if(defined( 'WP_DEBUG' ) && WP_DEBUG === true) {
     56            if (defined('WP_DEBUG') && WP_DEBUG === true) {
    5757                // phpcs:disable WordPress.PHP.DevelopmentFunctions
    5858                error_log($message);
     
    6363        public function gd_extension_notice()
    6464        {
    65             ?>
    66                 <div class="notice notice-error">
    67                     <p><?php esc_html_e('The GD extension is not loaded. The Webp Transformer plugin will not function properly without it.', 'webp-transformer'); ?></p>
    68                 </div>
    69             <?php
     65?>
     66            <div class="notice notice-error">
     67                <p><?php esc_html_e('The GD extension is not loaded. The Webp Transformer plugin will not function properly without it.', 'webp-transformer'); ?></p>
     68            </div>
     69<?php
    7070        }
    7171
     
    102102                        $file['file'] = $webp_file_path;
    103103                        $file['type'] = 'image/webp';
    104                        
     104
    105105                        wp_delete_file($original_file_path);
    106106                    } else {
     
    125125                case 'image/png':
    126126                    $img = imagecreatefrompng($file_path);
    127                     imagepalettetotruecolor($img);
    128 
    129127                    return $img;
    130128                default:
     
    161159            $ignore_filename = wbptf_get_ignore_filename();
    162160
    163             return str_contains($base_name, $ignore_filename);
     161            return strpos($base_name, $ignore_filename) !== false;
    164162        }
    165163
Note: See TracChangeset for help on using the changeset viewer.