Changeset 2870676
- Timestamp:
- 02/24/2023 03:07:11 PM (3 years ago)
- Location:
- rokka-integration/trunk
- Files:
-
- 13 edited
-
languages/rokka-integration-de_CH.po (modified) (1 diff)
-
languages/rokka-integration-de_DE.po (modified) (1 diff)
-
languages/rokka-integration.pot (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
rokka-integration.php (modified) (2 diffs)
-
src/class-rokka-helper.php (modified) (2 diffs)
-
src/class-rokka-integration.php (modified) (1 diff)
-
src/class-rokka-media-management.php (modified) (2 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/ClassLoader.php (modified) (4 diffs)
-
vendor/composer/autoload_real.php (modified) (3 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rokka-integration/trunk/languages/rokka-integration-de_CH.po
r2816557 r2870676 6 6 msgid "" 7 7 msgstr "" 8 "Project-Id-Version: rokka-integration 5. 0.0\n"8 "Project-Id-Version: rokka-integration 5.1.0\n" 9 9 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/rokka-" 10 10 "integration\n" -
rokka-integration/trunk/languages/rokka-integration-de_DE.po
r2816557 r2870676 6 6 msgid "" 7 7 msgstr "" 8 "Project-Id-Version: rokka-integration 5. 0.0\n"8 "Project-Id-Version: rokka-integration 5.1.0\n" 9 9 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/rokka-" 10 10 "integration\n" -
rokka-integration/trunk/languages/rokka-integration.pot
r2816557 r2870676 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Rokka Integration 5. 0.0\n"5 "Project-Id-Version: Rokka Integration 5.1.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/rokka-integration\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" -
rokka-integration/trunk/readme.txt
r2816557 r2870676 6 6 Tested up to: 6.1 7 7 Requires PHP: 7.1 8 Stable tag: 5. 0.08 Stable tag: 5.1.0 9 9 License: GPLv2 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 73 73 == Changelog == 74 74 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 75 79 = 5.0.0 = 76 80 -
rokka-integration/trunk/rokka-integration.php
r2816557 r2870676 4 4 * Plugin URI: https://github.com/rokka-io/rokka-wordpress-plugin 5 5 * Description: Rokka image processing and cdn plugin for WordPress. 6 * Version: 5. 0.06 * Version: 5.1.0 7 7 * Author: Liip AG 8 8 * Author URI: https://www.liip.ch … … 25 25 // Include the main Rokka_Integration class. 26 26 if ( ! 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'; 28 28 } 29 29 -
rokka-integration/trunk/src/class-rokka-helper.php
r2816557 r2870676 726 726 $height = intval( get_option( "{$_size}_size_h" ) ); 727 727 $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']; 734 732 } 735 733 // if width or height is 0 or bigger than 10000 (no limit) set to 10000 (rokka maximum) … … 739 737 } 740 738 739 // Add site_icon sizes 740 $sizes = array_merge( $sizes, $this->get_site_icon_sizes() ); 741 741 742 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; 742 769 } 743 770 -
rokka-integration/trunk/src/class-rokka-integration.php
r2816557 r2870676 43 43 * @var string 44 44 */ 45 public $version = '5. 0.0';45 public $version = '5.1.0'; 46 46 47 47 /** -
rokka-integration/trunk/src/class-rokka-media-management.php
r2183865 r2870676 362 362 /* translators: %s contains image id */ 363 363 $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; 365 365 } elseif ( $this->rokka_helper->is_on_rokka( $post_id ) ) { 366 366 /* translators: %s contains image id */ 367 367 $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; 369 369 } else { 370 370 try { … … 408 408 /* translators: %s contains image id */ 409 409 $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; 411 411 } else { 412 412 try { -
rokka-integration/trunk/vendor/autoload.php
r2816557 r2870676 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 6b4e486db9120bfd14f544803b510d8d::getLoader();25 return ComposerAutoloaderInit1f7a0299f1e1c58db1095be81eb2758e::getLoader(); -
rokka-integration/trunk/vendor/composer/ClassLoader.php
r2725323 r2870676 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 45 48 /** @var ?string */ 46 49 private $vendorDir; … … 107 110 { 108 111 $this->vendorDir = $vendorDir; 112 self::initializeIncludeClosure(); 109 113 } 110 114 … … 426 430 { 427 431 if ($file = $this->findFile($class)) { 428 includeFile($file); 432 $includeFile = self::$includeFile; 433 $includeFile($file); 429 434 430 435 return true; … … 556 561 return false; 557 562 } 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 } 558 585 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
rokka-integration/trunk/vendor/composer/autoload_real.php
r2816557 r2870676 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 6b4e486db9120bfd14f544803b510d8d5 class ComposerAutoloaderInit1f7a0299f1e1c58db1095be81eb2758e 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 6b4e486db9120bfd14f544803b510d8d', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit1f7a0299f1e1c58db1095be81eb2758e', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 6b4e486db9120bfd14f544803b510d8d', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit1f7a0299f1e1c58db1095be81eb2758e', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 6b4e486db9120bfd14f544803b510d8d::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit1f7a0299f1e1c58db1095be81eb2758e::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 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); 39 46 } 40 47 … … 42 49 } 43 50 } 44 45 /**46 * @param string $fileIdentifier47 * @param string $file48 * @return void49 */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 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 6b4e486db9120bfd14f544803b510d8d7 class ComposerStaticInit1f7a0299f1e1c58db1095be81eb2758e 8 8 { 9 9 public static $files = array ( … … 115 115 { 116 116 return \Closure::bind(function () use ($loader) { 117 $loader->prefixLengthsPsr4 = ComposerStaticInit 6b4e486db9120bfd14f544803b510d8d::$prefixLengthsPsr4;118 $loader->prefixDirsPsr4 = ComposerStaticInit 6b4e486db9120bfd14f544803b510d8d::$prefixDirsPsr4;119 $loader->prefixesPsr0 = ComposerStaticInit 6b4e486db9120bfd14f544803b510d8d::$prefixesPsr0;120 $loader->classMap = ComposerStaticInit 6b4e486db9120bfd14f544803b510d8d::$classMap;117 $loader->prefixLengthsPsr4 = ComposerStaticInit1f7a0299f1e1c58db1095be81eb2758e::$prefixLengthsPsr4; 118 $loader->prefixDirsPsr4 = ComposerStaticInit1f7a0299f1e1c58db1095be81eb2758e::$prefixDirsPsr4; 119 $loader->prefixesPsr0 = ComposerStaticInit1f7a0299f1e1c58db1095be81eb2758e::$prefixesPsr0; 120 $loader->classMap = ComposerStaticInit1f7a0299f1e1c58db1095be81eb2758e::$classMap; 121 121 122 122 }, null, ClassLoader::class); -
rokka-integration/trunk/vendor/composer/installed.php
r2816557 r2870676 2 2 'root' => array( 3 3 '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', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 90 90 ), 91 91 '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', 95 95 'type' => 'wordpress-plugin', 96 96 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.