Plugin Directory

Changeset 2870676


Ignore:
Timestamp:
02/24/2023 03:07:11 PM (3 years ago)
Author:
liip
Message:

Preparing for 5.1.0 release

Location:
rokka-integration/trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • rokka-integration/trunk/languages/rokka-integration-de_CH.po

    r2816557 r2870676  
    66msgid ""
    77msgstr ""
    8 "Project-Id-Version: rokka-integration 5.0.0\n"
     8"Project-Id-Version: rokka-integration 5.1.0\n"
    99"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/rokka-"
    1010"integration\n"
  • rokka-integration/trunk/languages/rokka-integration-de_DE.po

    r2816557 r2870676  
    66msgid ""
    77msgstr ""
    8 "Project-Id-Version: rokka-integration 5.0.0\n"
     8"Project-Id-Version: rokka-integration 5.1.0\n"
    99"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/rokka-"
    1010"integration\n"
  • rokka-integration/trunk/languages/rokka-integration.pot

    r2816557 r2870676  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Rokka Integration 5.0.0\n"
     5"Project-Id-Version: Rokka Integration 5.1.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/rokka-integration\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  • rokka-integration/trunk/readme.txt

    r2816557 r2870676  
    66Tested up to: 6.1
    77Requires PHP: 7.1
    8 Stable tag: 5.0.0
     8Stable tag: 5.1.0
    99License: GPLv2
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7373== Changelog ==
    7474
     75= 5.1.0 =
     76
     77* [FIX] Create stacks for custom `site_icon` sizes. If the theme registers custom `site_icon` sizes via the `site_icon_image_sizes` filter, the stacks for those sizes haven't been created in rokka which resulted in not rendering the favicons correctly in some cases. Please check if your stacks are up-to-date after updating to this version.
     78
    7579= 5.0.0 =
    7680
  • rokka-integration/trunk/rokka-integration.php

    r2816557 r2870676  
    44 * Plugin URI: https://github.com/rokka-io/rokka-wordpress-plugin
    55 * Description: Rokka image processing and cdn plugin for WordPress.
    6  * Version: 5.0.0
     6 * Version: 5.1.0
    77 * Author: Liip AG
    88 * Author URI: https://www.liip.ch
     
    2525// Include the main Rokka_Integration class.
    2626if ( ! class_exists( \Rokka_Integration\Rokka_Integration::class ) ) {
    27     include_once dirname( __FILE__ ) . '/src/class-rokka-integration.php';
     27    include_once __DIR__ . '/src/class-rokka-integration.php';
    2828}
    2929
  • rokka-integration/trunk/src/class-rokka-helper.php

    r2816557 r2870676  
    726726                $height = intval( get_option( "{$_size}_size_h" ) );
    727727                $crop = (bool) get_option( "{$_size}_crop" );
    728             } else {
    729                 if ( isset( $_wp_additional_image_sizes ) && isset( $_wp_additional_image_sizes[ $_size ] ) ) {
    730                     $width = $_wp_additional_image_sizes[ $_size ]['width'];
    731                     $height = $_wp_additional_image_sizes[ $_size ]['height'];
    732                     $crop = $_wp_additional_image_sizes[ $_size ]['crop'];
    733                 }
     728            } elseif ( isset( $_wp_additional_image_sizes ) && isset( $_wp_additional_image_sizes[ $_size ] ) ) {
     729                $width = $_wp_additional_image_sizes[ $_size ]['width'];
     730                $height = $_wp_additional_image_sizes[ $_size ]['height'];
     731                $crop = $_wp_additional_image_sizes[ $_size ]['crop'];
    734732            }
    735733            // if width or height is 0 or bigger than 10000 (no limit) set to 10000 (rokka maximum)
     
    739737        }
    740738
     739        // Add site_icon sizes
     740        $sizes = array_merge( $sizes, $this->get_site_icon_sizes() );
     741
    741742        return $sizes;
     743    }
     744
     745    /**
     746     * Returns custom registered site_icon sizes.
     747     *
     748     * @return array List of site_icon sizes (format: [width, height, crop])
     749     */
     750    public function get_site_icon_sizes() {
     751        $site_icon_sizes = array();
     752        $site_icon = new \WP_Site_Icon();
     753        foreach ( $site_icon->additional_sizes() as $size_name => $size ) {
     754            $height = $size['height'];
     755            $width = '';
     756            $crop = $size['crop'];
     757            // There seems to be a typo in the 'width' key name in the WP_Site_Icon class (trailing whitespace)
     758            if ( array_key_exists( 'width ', $size ) ) {
     759                $width = $size['width '];
     760            } elseif ( array_key_exists( 'width', $size ) ) {
     761                $width = $size['width'];
     762            }
     763            if ( ! empty( $width ) ) {
     764                $site_icon_sizes[ $size_name ] = array( $width, $height, $crop );
     765            }
     766        }
     767
     768        return $site_icon_sizes;
    742769    }
    743770
  • rokka-integration/trunk/src/class-rokka-integration.php

    r2816557 r2870676  
    4343     * @var string
    4444     */
    45     public $version = '5.0.0';
     45    public $version = '5.1.0';
    4646
    4747    /**
  • rokka-integration/trunk/src/class-rokka-media-management.php

    r2183865 r2870676  
    362362                /* translators: %s contains image id */
    363363                $this->rokka_helper->store_message_in_notices_option( sprintf( _x( 'The mime type of attachment %s is not supported on rokka.', '%s contains image id', 'rokka-integration' ), $post_id ), 'error' );
    364                 $image_count--;
     364                --$image_count;
    365365            } elseif ( $this->rokka_helper->is_on_rokka( $post_id ) ) {
    366366                /* translators: %s contains image id */
    367367                $this->rokka_helper->store_message_in_notices_option( sprintf( _x( 'The image %s is already on rokka.', '%s contains image id', 'rokka-integration' ), $post_id ), 'error' );
    368                 $image_count--;
     368                --$image_count;
    369369            } else {
    370370                try {
     
    408408                /* translators: %s contains image id */
    409409                $this->rokka_helper->store_message_in_notices_option( sprintf( _x( 'The image %s is not yet on rokka.', '%s contains image id', 'rokka-integration' ), $post_id ), 'error' );
    410                 $image_count--;
     410                --$image_count;
    411411            } else {
    412412                try {
  • rokka-integration/trunk/vendor/autoload.php

    r2816557 r2870676  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit6b4e486db9120bfd14f544803b510d8d::getLoader();
     25return ComposerAutoloaderInit1f7a0299f1e1c58db1095be81eb2758e::getLoader();
  • rokka-integration/trunk/vendor/composer/ClassLoader.php

    r2725323 r2870676  
    4343class ClassLoader
    4444{
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
    4548    /** @var ?string */
    4649    private $vendorDir;
     
    107110    {
    108111        $this->vendorDir = $vendorDir;
     112        self::initializeIncludeClosure();
    109113    }
    110114
     
    426430    {
    427431        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     432            $includeFile = self::$includeFile;
     433            $includeFile($file);
    429434
    430435            return true;
     
    556561        return false;
    557562    }
     563
     564    /**
     565     * @return void
     566     */
     567    private static function initializeIncludeClosure()
     568    {
     569        if (self::$includeFile !== null) {
     570            return;
     571        }
     572
     573        /**
     574         * Scope isolated include.
     575         *
     576         * Prevents access to $this/self from included files.
     577         *
     578         * @param  string $file
     579         * @return void
     580         */
     581        self::$includeFile = \Closure::bind(static function($file) {
     582            include $file;
     583        }, null, null);
     584    }
    558585}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • rokka-integration/trunk/vendor/composer/autoload_real.php

    r2816557 r2870676  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit6b4e486db9120bfd14f544803b510d8d
     5class ComposerAutoloaderInit1f7a0299f1e1c58db1095be81eb2758e
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit6b4e486db9120bfd14f544803b510d8d', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit1f7a0299f1e1c58db1095be81eb2758e', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit6b4e486db9120bfd14f544803b510d8d', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit1f7a0299f1e1c58db1095be81eb2758e', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit6b4e486db9120bfd14f544803b510d8d::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit1f7a0299f1e1c58db1095be81eb2758e::getInitializer($loader));
    3333
    3434        $loader->register(true);
    3535
    36         $includeFiles = \Composer\Autoload\ComposerStaticInit6b4e486db9120bfd14f544803b510d8d::$files;
    37         foreach ($includeFiles as $fileIdentifier => $file) {
    38             composerRequire6b4e486db9120bfd14f544803b510d8d($fileIdentifier, $file);
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInit1f7a0299f1e1c58db1095be81eb2758e::$files;
     37        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
     38            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     39                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     40
     41                require $file;
     42            }
     43        }, null, null);
     44        foreach ($filesToLoad as $fileIdentifier => $file) {
     45            $requireFile($fileIdentifier, $file);
    3946        }
    4047
     
    4249    }
    4350}
    44 
    45 /**
    46  * @param string $fileIdentifier
    47  * @param string $file
    48  * @return void
    49  */
    50 function composerRequire6b4e486db9120bfd14f544803b510d8d($fileIdentifier, $file)
    51 {
    52     if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
    53         $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    54 
    55         require $file;
    56     }
    57 }
  • rokka-integration/trunk/vendor/composer/autoload_static.php

    r2816557 r2870676  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit6b4e486db9120bfd14f544803b510d8d
     7class ComposerStaticInit1f7a0299f1e1c58db1095be81eb2758e
    88{
    99    public static $files = array (
     
    115115    {
    116116        return \Closure::bind(function () use ($loader) {
    117             $loader->prefixLengthsPsr4 = ComposerStaticInit6b4e486db9120bfd14f544803b510d8d::$prefixLengthsPsr4;
    118             $loader->prefixDirsPsr4 = ComposerStaticInit6b4e486db9120bfd14f544803b510d8d::$prefixDirsPsr4;
    119             $loader->prefixesPsr0 = ComposerStaticInit6b4e486db9120bfd14f544803b510d8d::$prefixesPsr0;
    120             $loader->classMap = ComposerStaticInit6b4e486db9120bfd14f544803b510d8d::$classMap;
     117            $loader->prefixLengthsPsr4 = ComposerStaticInit1f7a0299f1e1c58db1095be81eb2758e::$prefixLengthsPsr4;
     118            $loader->prefixDirsPsr4 = ComposerStaticInit1f7a0299f1e1c58db1095be81eb2758e::$prefixDirsPsr4;
     119            $loader->prefixesPsr0 = ComposerStaticInit1f7a0299f1e1c58db1095be81eb2758e::$prefixesPsr0;
     120            $loader->classMap = ComposerStaticInit1f7a0299f1e1c58db1095be81eb2758e::$classMap;
    121121
    122122        }, null, ClassLoader::class);
  • rokka-integration/trunk/vendor/composer/installed.php

    r2816557 r2870676  
    22    'root' => array(
    33        'name' => 'rokka/rokka-wordpress-plugin',
    4         'pretty_version' => '5.0.0',
    5         'version' => '5.0.0.0',
    6         'reference' => '0707ffb2a939293e66c64d91cdc5242b0ee73d5e',
     4        'pretty_version' => '5.1.0',
     5        'version' => '5.1.0.0',
     6        'reference' => 'ff82ce715084db936a071bb0eee3aaf1e30bb631',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    9090        ),
    9191        'rokka/rokka-wordpress-plugin' => array(
    92             'pretty_version' => '5.0.0',
    93             'version' => '5.0.0.0',
    94             'reference' => '0707ffb2a939293e66c64d91cdc5242b0ee73d5e',
     92            'pretty_version' => '5.1.0',
     93            'version' => '5.1.0.0',
     94            'reference' => 'ff82ce715084db936a071bb0eee3aaf1e30bb631',
    9595            'type' => 'wordpress-plugin',
    9696            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.