Version Description
(22.03.2021) = * Fixed fatal error during plugin load on some servers
Download this release
Release Info
| Developer | mihdan |
| Plugin | |
| Version | 5.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 5.0.0 to 5.0.1
- cyr-to-lat.php +3 -3
- readme.txt +8 -1
- vendor/autoload.php +1 -1
- vendor/composer/InstalledVersions.php +6 -6
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +6 -6
cyr-to-lat.php
CHANGED
|
@@ -10,7 +10,7 @@
|
|
| 10 |
* Plugin Name: Cyr-To-Lat
|
| 11 |
* Plugin URI: https://wordpress.org/plugins/cyr2lat/
|
| 12 |
* Description: Converts Cyrillic 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: 5.0.
|
| 14 |
* Requires at least: 5.1
|
| 15 |
* Requires PHP: 5.6.20
|
| 16 |
* Author: Sergey Biryukov, Mikhail Kobzarev, Igor Gergel
|
|
@@ -36,7 +36,7 @@ if ( defined( 'CYR_TO_LAT_VERSION' ) ) {
|
|
| 36 |
/**
|
| 37 |
* Plugin version.
|
| 38 |
*/
|
| 39 |
-
define( 'CYR_TO_LAT_VERSION', '5.0.
|
| 40 |
|
| 41 |
/**
|
| 42 |
* Path to the plugin dir.
|
|
@@ -81,7 +81,7 @@ define( 'CYR_TO_LAT_REQUIRED_MAX_INPUT_VARS', 1000 );
|
|
| 81 |
/**
|
| 82 |
* Init plugin on plugin load.
|
| 83 |
*/
|
| 84 |
-
require_once 'vendor/autoload.php';
|
| 85 |
|
| 86 |
global $cyr_to_lat_plugin;
|
| 87 |
|
| 10 |
* Plugin Name: Cyr-To-Lat
|
| 11 |
* Plugin URI: https://wordpress.org/plugins/cyr2lat/
|
| 12 |
* Description: Converts Cyrillic 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: 5.0.1
|
| 14 |
* Requires at least: 5.1
|
| 15 |
* Requires PHP: 5.6.20
|
| 16 |
* Author: Sergey Biryukov, Mikhail Kobzarev, Igor Gergel
|
| 36 |
/**
|
| 37 |
* Plugin version.
|
| 38 |
*/
|
| 39 |
+
define( 'CYR_TO_LAT_VERSION', '5.0.1' );
|
| 40 |
|
| 41 |
/**
|
| 42 |
* Path to the plugin dir.
|
| 81 |
/**
|
| 82 |
* Init plugin on plugin load.
|
| 83 |
*/
|
| 84 |
+
require_once constant( 'CYR_TO_LAT_PATH' ) . '/vendor/autoload.php';
|
| 85 |
|
| 86 |
global $cyr_to_lat_plugin;
|
| 87 |
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: SergeyBiryukov, mihdan, karevn, webvitaly, kaggdesign
|
|
| 3 |
Tags: cyrillic, belorussian, ukrainian, bulgarian, macedonian, georgian, kazakh, latin, l10n, russian, cyr-to-lat, cyr2lat, rustolat, slugs, translations, transliteration
|
| 4 |
Requires at least: 5.1
|
| 5 |
Tested up to: 5.7
|
| 6 |
-
Stable tag: 5.0.
|
| 7 |
Requires PHP: 5.6.20
|
| 8 |
|
| 9 |
Converts Cyrillic characters in post, page and term slugs to Latin characters.
|
|
@@ -31,6 +31,10 @@ Based on the original Rus-To-Lat plugin by Anton Skorobogatov.
|
|
| 31 |
2. Converter settings page
|
| 32 |
3. Block editor with transliterated slug
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
== Installation ==
|
| 35 |
|
| 36 |
1. Upload `cyr2lat` folder to the `/wp-content/plugins/` directory.
|
|
@@ -178,6 +182,9 @@ Yes you can!
|
|
| 178 |
|
| 179 |
== Changelog ==
|
| 180 |
|
|
|
|
|
|
|
|
|
|
| 181 |
= 5.0.0 (18.03.2021) =
|
| 182 |
* Introduce tabs on options page
|
| 183 |
* Add options to select post types and statuses for background conversion
|
| 3 |
Tags: cyrillic, belorussian, ukrainian, bulgarian, macedonian, georgian, kazakh, latin, l10n, russian, cyr-to-lat, cyr2lat, rustolat, slugs, translations, transliteration
|
| 4 |
Requires at least: 5.1
|
| 5 |
Tested up to: 5.7
|
| 6 |
+
Stable tag: 5.0.1
|
| 7 |
Requires PHP: 5.6.20
|
| 8 |
|
| 9 |
Converts Cyrillic characters in post, page and term slugs to Latin characters.
|
| 31 |
2. Converter settings page
|
| 32 |
3. Block editor with transliterated slug
|
| 33 |
|
| 34 |
+
== Plugin Support ==
|
| 35 |
+
* [Support Forum](https://wordpress.org/support/plugin/cyr2lat/)
|
| 36 |
+
* [Telegram Channel](https://t.me/cyr2lat)
|
| 37 |
+
|
| 38 |
== Installation ==
|
| 39 |
|
| 40 |
1. Upload `cyr2lat` folder to the `/wp-content/plugins/` directory.
|
| 182 |
|
| 183 |
== Changelog ==
|
| 184 |
|
| 185 |
+
= 5.0.1 (22.03.2021) =
|
| 186 |
+
* Fixed fatal error during plugin load on some servers
|
| 187 |
+
|
| 188 |
= 5.0.0 (18.03.2021) =
|
| 189 |
* Introduce tabs on options page
|
| 190 |
* Add options to select post types and statuses for background conversion
|
vendor/autoload.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInitce519c7cde52ecd209b7f65d782cf8f2::getLoader();
|
vendor/composer/InstalledVersions.php
CHANGED
|
@@ -25,12 +25,12 @@ class InstalledVersions
|
|
| 25 |
private static $installed = array (
|
| 26 |
'root' =>
|
| 27 |
array (
|
| 28 |
-
'pretty_version' => '5.0.
|
| 29 |
-
'version' => '5.0.
|
| 30 |
'aliases' =>
|
| 31 |
array (
|
| 32 |
),
|
| 33 |
-
'reference' => '
|
| 34 |
'name' => 'mihdan/cyr2lat',
|
| 35 |
),
|
| 36 |
'versions' =>
|
|
@@ -46,12 +46,12 @@ private static $installed = array (
|
|
| 46 |
),
|
| 47 |
'mihdan/cyr2lat' =>
|
| 48 |
array (
|
| 49 |
-
'pretty_version' => '5.0.
|
| 50 |
-
'version' => '5.0.
|
| 51 |
'aliases' =>
|
| 52 |
array (
|
| 53 |
),
|
| 54 |
-
'reference' => '
|
| 55 |
),
|
| 56 |
'roundcube/plugin-installer' =>
|
| 57 |
array (
|
| 25 |
private static $installed = array (
|
| 26 |
'root' =>
|
| 27 |
array (
|
| 28 |
+
'pretty_version' => '5.0.1',
|
| 29 |
+
'version' => '5.0.1.0',
|
| 30 |
'aliases' =>
|
| 31 |
array (
|
| 32 |
),
|
| 33 |
+
'reference' => '6538fd2c42bcc7646d1ed8aea4bb0d101cf145bd',
|
| 34 |
'name' => 'mihdan/cyr2lat',
|
| 35 |
),
|
| 36 |
'versions' =>
|
| 46 |
),
|
| 47 |
'mihdan/cyr2lat' =>
|
| 48 |
array (
|
| 49 |
+
'pretty_version' => '5.0.1',
|
| 50 |
+
'version' => '5.0.1.0',
|
| 51 |
'aliases' =>
|
| 52 |
array (
|
| 53 |
),
|
| 54 |
+
'reference' => '6538fd2c42bcc7646d1ed8aea4bb0d101cf145bd',
|
| 55 |
),
|
| 56 |
'roundcube/plugin-installer' =>
|
| 57 |
array (
|
vendor/composer/autoload_real.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
-
class
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitedbf0ae69d823c20f1f2c9984482bd8e
|
|
| 22 |
return self::$loader;
|
| 23 |
}
|
| 24 |
|
| 25 |
-
spl_autoload_register(array('
|
| 26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
| 27 |
-
spl_autoload_unregister(array('
|
| 28 |
|
| 29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 30 |
if ($useStaticLoader) {
|
| 31 |
require __DIR__ . '/autoload_static.php';
|
| 32 |
|
| 33 |
-
call_user_func(\Composer\Autoload\
|
| 34 |
} else {
|
| 35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 36 |
foreach ($map as $namespace => $path) {
|
|
@@ -51,19 +51,19 @@ class ComposerAutoloaderInitedbf0ae69d823c20f1f2c9984482bd8e
|
|
| 51 |
$loader->register(true);
|
| 52 |
|
| 53 |
if ($useStaticLoader) {
|
| 54 |
-
$includeFiles = Composer\Autoload\
|
| 55 |
} else {
|
| 56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 57 |
}
|
| 58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 59 |
-
|
| 60 |
}
|
| 61 |
|
| 62 |
return $loader;
|
| 63 |
}
|
| 64 |
}
|
| 65 |
|
| 66 |
-
function
|
| 67 |
{
|
| 68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 69 |
require $file;
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInitce519c7cde52ecd209b7f65d782cf8f2
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 22 |
return self::$loader;
|
| 23 |
}
|
| 24 |
|
| 25 |
+
spl_autoload_register(array('ComposerAutoloaderInitce519c7cde52ecd209b7f65d782cf8f2', 'loadClassLoader'), true, true);
|
| 26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
| 27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitce519c7cde52ecd209b7f65d782cf8f2', 'loadClassLoader'));
|
| 28 |
|
| 29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 30 |
if ($useStaticLoader) {
|
| 31 |
require __DIR__ . '/autoload_static.php';
|
| 32 |
|
| 33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitce519c7cde52ecd209b7f65d782cf8f2::getInitializer($loader));
|
| 34 |
} else {
|
| 35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 36 |
foreach ($map as $namespace => $path) {
|
| 51 |
$loader->register(true);
|
| 52 |
|
| 53 |
if ($useStaticLoader) {
|
| 54 |
+
$includeFiles = Composer\Autoload\ComposerStaticInitce519c7cde52ecd209b7f65d782cf8f2::$files;
|
| 55 |
} else {
|
| 56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 57 |
}
|
| 58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 59 |
+
composerRequirece519c7cde52ecd209b7f65d782cf8f2($fileIdentifier, $file);
|
| 60 |
}
|
| 61 |
|
| 62 |
return $loader;
|
| 63 |
}
|
| 64 |
}
|
| 65 |
|
| 66 |
+
function composerRequirece519c7cde52ecd209b7f65d782cf8f2($fileIdentifier, $file)
|
| 67 |
{
|
| 68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 69 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
-
class
|
| 8 |
{
|
| 9 |
public static $files = array (
|
| 10 |
'344a0f93a05b8ca362c22e39586db500' => __DIR__ . '/../..' . '/lib/polyfill-mbstring/bootstrap.php',
|
|
@@ -50,9 +50,9 @@ class ComposerStaticInitedbf0ae69d823c20f1f2c9984482bd8e
|
|
| 50 |
public static function getInitializer(ClassLoader $loader)
|
| 51 |
{
|
| 52 |
return \Closure::bind(function () use ($loader) {
|
| 53 |
-
$loader->prefixLengthsPsr4 =
|
| 54 |
-
$loader->prefixDirsPsr4 =
|
| 55 |
-
$loader->classMap =
|
| 56 |
|
| 57 |
}, null, ClassLoader::class);
|
| 58 |
}
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
+
class ComposerStaticInitce519c7cde52ecd209b7f65d782cf8f2
|
| 8 |
{
|
| 9 |
public static $files = array (
|
| 10 |
'344a0f93a05b8ca362c22e39586db500' => __DIR__ . '/../..' . '/lib/polyfill-mbstring/bootstrap.php',
|
| 50 |
public static function getInitializer(ClassLoader $loader)
|
| 51 |
{
|
| 52 |
return \Closure::bind(function () use ($loader) {
|
| 53 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitce519c7cde52ecd209b7f65d782cf8f2::$prefixLengthsPsr4;
|
| 54 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitce519c7cde52ecd209b7f65d782cf8f2::$prefixDirsPsr4;
|
| 55 |
+
$loader->classMap = ComposerStaticInitce519c7cde52ecd209b7f65d782cf8f2::$classMap;
|
| 56 |
|
| 57 |
}, null, ClassLoader::class);
|
| 58 |
}
|
vendor/composer/installed.php
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
<?php return array (
|
| 2 |
'root' =>
|
| 3 |
array (
|
| 4 |
-
'pretty_version' => '5.0.
|
| 5 |
-
'version' => '5.0.
|
| 6 |
'aliases' =>
|
| 7 |
array (
|
| 8 |
),
|
| 9 |
-
'reference' => '
|
| 10 |
'name' => 'mihdan/cyr2lat',
|
| 11 |
),
|
| 12 |
'versions' =>
|
|
@@ -22,12 +22,12 @@
|
|
| 22 |
),
|
| 23 |
'mihdan/cyr2lat' =>
|
| 24 |
array (
|
| 25 |
-
'pretty_version' => '5.0.
|
| 26 |
-
'version' => '5.0.
|
| 27 |
'aliases' =>
|
| 28 |
array (
|
| 29 |
),
|
| 30 |
-
'reference' => '
|
| 31 |
),
|
| 32 |
'roundcube/plugin-installer' =>
|
| 33 |
array (
|
| 1 |
<?php return array (
|
| 2 |
'root' =>
|
| 3 |
array (
|
| 4 |
+
'pretty_version' => '5.0.1',
|
| 5 |
+
'version' => '5.0.1.0',
|
| 6 |
'aliases' =>
|
| 7 |
array (
|
| 8 |
),
|
| 9 |
+
'reference' => '6538fd2c42bcc7646d1ed8aea4bb0d101cf145bd',
|
| 10 |
'name' => 'mihdan/cyr2lat',
|
| 11 |
),
|
| 12 |
'versions' =>
|
| 22 |
),
|
| 23 |
'mihdan/cyr2lat' =>
|
| 24 |
array (
|
| 25 |
+
'pretty_version' => '5.0.1',
|
| 26 |
+
'version' => '5.0.1.0',
|
| 27 |
'aliases' =>
|
| 28 |
array (
|
| 29 |
),
|
| 30 |
+
'reference' => '6538fd2c42bcc7646d1ed8aea4bb0d101cf145bd',
|
| 31 |
),
|
| 32 |
'roundcube/plugin-installer' =>
|
| 33 |
array (
|
