Plugin Directory

Changeset 3406327


Ignore:
Timestamp:
11/30/2025 09:51:12 PM (4 months ago)
Author:
mihdan
Message:

Update to version 6.6.0 from GitHub

Location:
cyr2lat
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • cyr2lat/tags/6.6.0/changelog.txt

    r3384222 r3406327  
     1= 6.6.0 (30.11.2025) =
     2* Fixed the deprecated function message in Main.php with WordPress 6.9.
     3* Tested with PHP 8.4.
     4* Tested with WordPress 6.9.
     5* Tested with WooCommerce 10.3.
     6
    17= 6.5.0 (24.10.2025) =
    28* Fixed transliteration of tags during editing.
  • cyr2lat/tags/6.6.0/cyr-to-lat.php

    r3384222 r3406327  
    1111 * Plugin URI:        https://kagg.eu/cyr-to-lat/
    1212 * Description:       Convert Non-Latin characters in post and term slugs to Latin characters. Useful for creating human-readable URLs. Based on the original plugin by Anton Skorobogatov.
    13  * Version:           6.5.0
     13 * Version:           6.6.0
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.2
     
    2121 *
    2222 * WC requires at least: 3.0
    23  * WC tested up to:      9.4
     23 * WC tested up to:      10.3
    2424 */
    2525
     
    4242 * Plugin version.
    4343 */
    44 define( 'CYR_TO_LAT_VERSION', '6.5.0' );
     44define( 'CYR_TO_LAT_VERSION', '6.6.0' );
    4545
    4646/**
  • cyr2lat/tags/6.6.0/readme.txt

    r3384222 r3406327  
    33Tags: cyrillic, slugs, translation, transliteration
    44Requires at least: 5.3
    5 Tested up to: 6.8
     5Tested up to: 6.9
    66Requires PHP: 7.2
    7 Stable tag: 6.5.0
     7Stable tag: 6.6.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    226226== Changelog ==
    227227
     228= 6.6.0 (30.11.2025) =
     229* Fixed the deprecated function message in Main.php with WordPress 6.9.
     230* Tested with PHP 8.4.
     231* Tested with WordPress 6.9.
     232* Tested with WooCommerce 10.3.
     233
    228234= 6.5.0 (24.10.2025) =
    229235* Fixed transliteration of tags during editing.
  • cyr2lat/tags/6.6.0/src/php/Main.php

    r3384222 r3406327  
    452452     */
    453453    public function sanitize_filename( $filename, $filename_raw ) {
     454        global $wp_version;
     455
    454456        $pre = apply_filters( 'ctl_pre_sanitize_filename', false, $filename );
    455457
    456458        if ( false !== $pre ) {
    457             return $pre;
     459            return (string) $pre;
    458460        }
    459461
    460462        $filename = (string) $filename;
    461 
    462         if ( seems_utf8( $filename ) ) {
     463        $is_utf8  = version_compare( $wp_version, '6.9-RC1', '>=' ) ? 'wp_is_valid_utf8' : 'seems_utf8';
     464
     465        if ( $is_utf8( $filename ) ) {
    463466            $filename = (string) Mbstring::mb_strtolower( $filename );
    464467        }
  • cyr2lat/tags/6.6.0/vendor/autoload.php

    r3384222 r3406327  
    2020require_once __DIR__ . '/composer/autoload_real.php';
    2121
    22 return ComposerAutoloaderInit73b92d31f74139c8a6c2782bb16651fe::getLoader();
     22return ComposerAutoloaderInit852898dddb2f9299496130ba434fc131::getLoader();
  • cyr2lat/tags/6.6.0/vendor/composer/autoload_real.php

    r3384222 r3406327  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit73b92d31f74139c8a6c2782bb16651fe
     5class ComposerAutoloaderInit852898dddb2f9299496130ba434fc131
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit73b92d31f74139c8a6c2782bb16651fe', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit852898dddb2f9299496130ba434fc131', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit73b92d31f74139c8a6c2782bb16651fe', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit852898dddb2f9299496130ba434fc131', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInit73b92d31f74139c8a6c2782bb16651fe::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit852898dddb2f9299496130ba434fc131::getInitializer($loader));
    3131
    3232        $loader->setClassMapAuthoritative(true);
    3333        $loader->register(true);
    3434
    35         $filesToLoad = \Composer\Autoload\ComposerStaticInit73b92d31f74139c8a6c2782bb16651fe::$files;
     35        $filesToLoad = \Composer\Autoload\ComposerStaticInit852898dddb2f9299496130ba434fc131::$files;
    3636        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3737            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • cyr2lat/tags/6.6.0/vendor/composer/autoload_static.php

    r3384222 r3406327  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit73b92d31f74139c8a6c2782bb16651fe
     7class ComposerStaticInit852898dddb2f9299496130ba434fc131
    88{
    99    public static $files = array (
     
    5454    {
    5555        return \Closure::bind(function () use ($loader) {
    56             $loader->prefixLengthsPsr4 = ComposerStaticInit73b92d31f74139c8a6c2782bb16651fe::$prefixLengthsPsr4;
    57             $loader->prefixDirsPsr4 = ComposerStaticInit73b92d31f74139c8a6c2782bb16651fe::$prefixDirsPsr4;
    58             $loader->classMap = ComposerStaticInit73b92d31f74139c8a6c2782bb16651fe::$classMap;
     56            $loader->prefixLengthsPsr4 = ComposerStaticInit852898dddb2f9299496130ba434fc131::$prefixLengthsPsr4;
     57            $loader->prefixDirsPsr4 = ComposerStaticInit852898dddb2f9299496130ba434fc131::$prefixDirsPsr4;
     58            $loader->classMap = ComposerStaticInit852898dddb2f9299496130ba434fc131::$classMap;
    5959
    6060        }, null, ClassLoader::class);
  • cyr2lat/tags/6.6.0/vendor/composer/installed.php

    r3384222 r3406327  
    22    'root' => array(
    33        'name' => 'mihdan/cyr2lat',
    4         'pretty_version' => '6.5.0',
    5         'version' => '6.5.0.0',
    6         'reference' => '92def392f578ed659765fe52016f357b267abe05',
     4        'pretty_version' => '6.6.0',
     5        'version' => '6.6.0.0',
     6        'reference' => '22508139907ff6db0ba1868cfbcfebb112bb9b69',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'mihdan/cyr2lat' => array(
    14             'pretty_version' => '6.5.0',
    15             'version' => '6.5.0.0',
    16             'reference' => '92def392f578ed659765fe52016f357b267abe05',
     14            'pretty_version' => '6.6.0',
     15            'version' => '6.6.0.0',
     16            'reference' => '22508139907ff6db0ba1868cfbcfebb112bb9b69',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • cyr2lat/trunk/changelog.txt

    r3384222 r3406327  
     1= 6.6.0 (30.11.2025) =
     2* Fixed the deprecated function message in Main.php with WordPress 6.9.
     3* Tested with PHP 8.4.
     4* Tested with WordPress 6.9.
     5* Tested with WooCommerce 10.3.
     6
    17= 6.5.0 (24.10.2025) =
    28* Fixed transliteration of tags during editing.
  • cyr2lat/trunk/cyr-to-lat.php

    r3384222 r3406327  
    1111 * Plugin URI:        https://kagg.eu/cyr-to-lat/
    1212 * Description:       Convert Non-Latin characters in post and term slugs to Latin characters. Useful for creating human-readable URLs. Based on the original plugin by Anton Skorobogatov.
    13  * Version:           6.5.0
     13 * Version:           6.6.0
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.2
     
    2121 *
    2222 * WC requires at least: 3.0
    23  * WC tested up to:      9.4
     23 * WC tested up to:      10.3
    2424 */
    2525
     
    4242 * Plugin version.
    4343 */
    44 define( 'CYR_TO_LAT_VERSION', '6.5.0' );
     44define( 'CYR_TO_LAT_VERSION', '6.6.0' );
    4545
    4646/**
  • cyr2lat/trunk/readme.txt

    r3384222 r3406327  
    33Tags: cyrillic, slugs, translation, transliteration
    44Requires at least: 5.3
    5 Tested up to: 6.8
     5Tested up to: 6.9
    66Requires PHP: 7.2
    7 Stable tag: 6.5.0
     7Stable tag: 6.6.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    226226== Changelog ==
    227227
     228= 6.6.0 (30.11.2025) =
     229* Fixed the deprecated function message in Main.php with WordPress 6.9.
     230* Tested with PHP 8.4.
     231* Tested with WordPress 6.9.
     232* Tested with WooCommerce 10.3.
     233
    228234= 6.5.0 (24.10.2025) =
    229235* Fixed transliteration of tags during editing.
  • cyr2lat/trunk/src/php/Main.php

    r3384222 r3406327  
    452452     */
    453453    public function sanitize_filename( $filename, $filename_raw ) {
     454        global $wp_version;
     455
    454456        $pre = apply_filters( 'ctl_pre_sanitize_filename', false, $filename );
    455457
    456458        if ( false !== $pre ) {
    457             return $pre;
     459            return (string) $pre;
    458460        }
    459461
    460462        $filename = (string) $filename;
    461 
    462         if ( seems_utf8( $filename ) ) {
     463        $is_utf8  = version_compare( $wp_version, '6.9-RC1', '>=' ) ? 'wp_is_valid_utf8' : 'seems_utf8';
     464
     465        if ( $is_utf8( $filename ) ) {
    463466            $filename = (string) Mbstring::mb_strtolower( $filename );
    464467        }
  • cyr2lat/trunk/vendor/autoload.php

    r3384222 r3406327  
    2020require_once __DIR__ . '/composer/autoload_real.php';
    2121
    22 return ComposerAutoloaderInit73b92d31f74139c8a6c2782bb16651fe::getLoader();
     22return ComposerAutoloaderInit852898dddb2f9299496130ba434fc131::getLoader();
  • cyr2lat/trunk/vendor/composer/autoload_real.php

    r3384222 r3406327  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit73b92d31f74139c8a6c2782bb16651fe
     5class ComposerAutoloaderInit852898dddb2f9299496130ba434fc131
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit73b92d31f74139c8a6c2782bb16651fe', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit852898dddb2f9299496130ba434fc131', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit73b92d31f74139c8a6c2782bb16651fe', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit852898dddb2f9299496130ba434fc131', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInit73b92d31f74139c8a6c2782bb16651fe::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit852898dddb2f9299496130ba434fc131::getInitializer($loader));
    3131
    3232        $loader->setClassMapAuthoritative(true);
    3333        $loader->register(true);
    3434
    35         $filesToLoad = \Composer\Autoload\ComposerStaticInit73b92d31f74139c8a6c2782bb16651fe::$files;
     35        $filesToLoad = \Composer\Autoload\ComposerStaticInit852898dddb2f9299496130ba434fc131::$files;
    3636        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3737            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • cyr2lat/trunk/vendor/composer/autoload_static.php

    r3384222 r3406327  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit73b92d31f74139c8a6c2782bb16651fe
     7class ComposerStaticInit852898dddb2f9299496130ba434fc131
    88{
    99    public static $files = array (
     
    5454    {
    5555        return \Closure::bind(function () use ($loader) {
    56             $loader->prefixLengthsPsr4 = ComposerStaticInit73b92d31f74139c8a6c2782bb16651fe::$prefixLengthsPsr4;
    57             $loader->prefixDirsPsr4 = ComposerStaticInit73b92d31f74139c8a6c2782bb16651fe::$prefixDirsPsr4;
    58             $loader->classMap = ComposerStaticInit73b92d31f74139c8a6c2782bb16651fe::$classMap;
     56            $loader->prefixLengthsPsr4 = ComposerStaticInit852898dddb2f9299496130ba434fc131::$prefixLengthsPsr4;
     57            $loader->prefixDirsPsr4 = ComposerStaticInit852898dddb2f9299496130ba434fc131::$prefixDirsPsr4;
     58            $loader->classMap = ComposerStaticInit852898dddb2f9299496130ba434fc131::$classMap;
    5959
    6060        }, null, ClassLoader::class);
  • cyr2lat/trunk/vendor/composer/installed.php

    r3384222 r3406327  
    22    'root' => array(
    33        'name' => 'mihdan/cyr2lat',
    4         'pretty_version' => '6.5.0',
    5         'version' => '6.5.0.0',
    6         'reference' => '92def392f578ed659765fe52016f357b267abe05',
     4        'pretty_version' => '6.6.0',
     5        'version' => '6.6.0.0',
     6        'reference' => '22508139907ff6db0ba1868cfbcfebb112bb9b69',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'mihdan/cyr2lat' => array(
    14             'pretty_version' => '6.5.0',
    15             'version' => '6.5.0.0',
    16             'reference' => '92def392f578ed659765fe52016f357b267abe05',
     14            'pretty_version' => '6.6.0',
     15            'version' => '6.6.0.0',
     16            'reference' => '22508139907ff6db0ba1868cfbcfebb112bb9b69',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.