Version Description
(10.02.2021) = * Fix bug with Polylang
Download this release
Release Info
Developer | mihdan |
Plugin | Cyr-To-Lat |
Version | 4.6.1 |
Comparing to | |
See all releases |
Code changes from version 4.6.0 to 4.6.1
- classes/class-main.php +3 -3
- cyr-to-lat.php +3 -3
- readme.txt +5 -2
- 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
classes/class-main.php
CHANGED
@@ -420,17 +420,17 @@ class Main {
|
|
420 |
|
421 |
// phpcs:disable WordPress.Security.NonceVerification.Missing
|
422 |
// phpcs:disable WordPress.Security.NonceVerification.Recommended
|
423 |
-
if ( isset( $_POST['post_ID'] ) ) {
|
424 |
$pll_get_post_language = pll_get_post_language(
|
425 |
(int) filter_input( INPUT_POST, 'post_ID', FILTER_SANITIZE_STRING )
|
426 |
);
|
427 |
}
|
428 |
-
if ( isset( $_POST['pll_post_id'] ) ) {
|
429 |
$pll_get_post_language = pll_get_post_language(
|
430 |
(int) filter_input( INPUT_POST, 'pll_post_id', FILTER_SANITIZE_STRING )
|
431 |
);
|
432 |
}
|
433 |
-
if ( isset( $_GET['post'] ) ) {
|
434 |
$pll_get_post_language = pll_get_post_language(
|
435 |
(int) filter_input( INPUT_GET, 'post', FILTER_SANITIZE_STRING )
|
436 |
);
|
420 |
|
421 |
// phpcs:disable WordPress.Security.NonceVerification.Missing
|
422 |
// phpcs:disable WordPress.Security.NonceVerification.Recommended
|
423 |
+
if ( isset( $_POST['post_ID'] ) && function_exists( 'pll_get_post_language' ) ) {
|
424 |
$pll_get_post_language = pll_get_post_language(
|
425 |
(int) filter_input( INPUT_POST, 'post_ID', FILTER_SANITIZE_STRING )
|
426 |
);
|
427 |
}
|
428 |
+
if ( isset( $_POST['pll_post_id'] ) && function_exists( 'pll_get_post_language' ) ) {
|
429 |
$pll_get_post_language = pll_get_post_language(
|
430 |
(int) filter_input( INPUT_POST, 'pll_post_id', FILTER_SANITIZE_STRING )
|
431 |
);
|
432 |
}
|
433 |
+
if ( isset( $_GET['post'] ) && function_exists( 'pll_get_post_language' ) ) {
|
434 |
$pll_get_post_language = pll_get_post_language(
|
435 |
(int) filter_input( INPUT_GET, 'post', FILTER_SANITIZE_STRING )
|
436 |
);
|
cyr-to-lat.php
CHANGED
@@ -9,8 +9,8 @@
|
|
9 |
* Author URI: https://profiles.wordpress.org/sergeybiryukov/
|
10 |
* Requires at least: 5.1
|
11 |
* Tested up to: 5.6
|
12 |
-
* Version: 4.6.
|
13 |
-
* Stable tag: 4.6.
|
14 |
*
|
15 |
* Text Domain: cyr2lat
|
16 |
* Domain Path: /languages/
|
@@ -34,7 +34,7 @@ if ( defined( 'CYR_TO_LAT_VERSION' ) ) {
|
|
34 |
/**
|
35 |
* Plugin version.
|
36 |
*/
|
37 |
-
define( 'CYR_TO_LAT_VERSION', '4.6.
|
38 |
|
39 |
/**
|
40 |
* Path to the plugin dir.
|
9 |
* Author URI: https://profiles.wordpress.org/sergeybiryukov/
|
10 |
* Requires at least: 5.1
|
11 |
* Tested up to: 5.6
|
12 |
+
* Version: 4.6.1
|
13 |
+
* Stable tag: 4.6.1
|
14 |
*
|
15 |
* Text Domain: cyr2lat
|
16 |
* Domain Path: /languages/
|
34 |
/**
|
35 |
* Plugin version.
|
36 |
*/
|
37 |
+
define( 'CYR_TO_LAT_VERSION', '4.6.1' );
|
38 |
|
39 |
/**
|
40 |
* Path to the plugin dir.
|
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.6
|
6 |
-
Stable tag: 4.6.
|
7 |
Requires PHP: 5.6.20
|
8 |
|
9 |
Converts Cyrillic characters in post, page and term slugs to Latin characters.
|
@@ -99,7 +99,10 @@ Yes you can!
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
-
= 4.6.
|
|
|
|
|
|
|
103 |
* Add compatibility with Polylang
|
104 |
* Add confirmation popup before mass conversion of slugs
|
105 |
* Improve selection of posts and tags for conversion to avoid selection of excessive items for mass 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.6
|
6 |
+
Stable tag: 4.6.1
|
7 |
Requires PHP: 5.6.20
|
8 |
|
9 |
Converts Cyrillic characters in post, page and term slugs to Latin characters.
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 4.6.1 (10.02.2021) =
|
103 |
+
* Fix bug with Polylang
|
104 |
+
|
105 |
+
= 4.6.0 (10.02.2021) =
|
106 |
* Add compatibility with Polylang
|
107 |
* Add confirmation popup before mass conversion of slugs
|
108 |
* Improve selection of posts and tags for conversion to avoid selection of excessive items for mass 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 ComposerAutoloaderInitc29dc99eeb73bc6cf5cbe2626f7c6213::getLoader();
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -25,12 +25,12 @@ class InstalledVersions
|
|
25 |
private static $installed = array (
|
26 |
'root' =>
|
27 |
array (
|
28 |
-
'pretty_version' => '4.6.
|
29 |
-
'version' => '4.6.
|
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' => '4.6.
|
50 |
-
'version' => '4.6.
|
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' => '4.6.1',
|
29 |
+
'version' => '4.6.1.0',
|
30 |
'aliases' =>
|
31 |
array (
|
32 |
),
|
33 |
+
'reference' => '56ac73b6279d3d1580a35e41eee83fced7779e26',
|
34 |
'name' => 'mihdan/cyr2lat',
|
35 |
),
|
36 |
'versions' =>
|
46 |
),
|
47 |
'mihdan/cyr2lat' =>
|
48 |
array (
|
49 |
+
'pretty_version' => '4.6.1',
|
50 |
+
'version' => '4.6.1.0',
|
51 |
'aliases' =>
|
52 |
array (
|
53 |
),
|
54 |
+
'reference' => '56ac73b6279d3d1580a35e41eee83fced7779e26',
|
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 ComposerAutoloaderInit754f340405ab0e2a93b757c18525c113
|
|
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 ComposerAutoloaderInit754f340405ab0e2a93b757c18525c113
|
|
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 ComposerAutoloaderInitc29dc99eeb73bc6cf5cbe2626f7c6213
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInitc29dc99eeb73bc6cf5cbe2626f7c6213', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitc29dc99eeb73bc6cf5cbe2626f7c6213', '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\ComposerStaticInitc29dc99eeb73bc6cf5cbe2626f7c6213::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\ComposerStaticInitc29dc99eeb73bc6cf5cbe2626f7c6213::$files;
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
+
composerRequirec29dc99eeb73bc6cf5cbe2626f7c6213($fileIdentifier, $file);
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
+
function composerRequirec29dc99eeb73bc6cf5cbe2626f7c6213($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',
|
@@ -45,9 +45,9 @@ class ComposerStaticInit754f340405ab0e2a93b757c18525c113
|
|
45 |
public static function getInitializer(ClassLoader $loader)
|
46 |
{
|
47 |
return \Closure::bind(function () use ($loader) {
|
48 |
-
$loader->prefixLengthsPsr4 =
|
49 |
-
$loader->prefixDirsPsr4 =
|
50 |
-
$loader->classMap =
|
51 |
|
52 |
}, null, ClassLoader::class);
|
53 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitc29dc99eeb73bc6cf5cbe2626f7c6213
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'344a0f93a05b8ca362c22e39586db500' => __DIR__ . '/../..' . '/lib/polyfill-mbstring/bootstrap.php',
|
45 |
public static function getInitializer(ClassLoader $loader)
|
46 |
{
|
47 |
return \Closure::bind(function () use ($loader) {
|
48 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitc29dc99eeb73bc6cf5cbe2626f7c6213::$prefixLengthsPsr4;
|
49 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitc29dc99eeb73bc6cf5cbe2626f7c6213::$prefixDirsPsr4;
|
50 |
+
$loader->classMap = ComposerStaticInitc29dc99eeb73bc6cf5cbe2626f7c6213::$classMap;
|
51 |
|
52 |
}, null, ClassLoader::class);
|
53 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?php return array (
|
2 |
'root' =>
|
3 |
array (
|
4 |
-
'pretty_version' => '4.6.
|
5 |
-
'version' => '4.6.
|
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' => '4.6.
|
26 |
-
'version' => '4.6.
|
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' => '4.6.1',
|
5 |
+
'version' => '4.6.1.0',
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
+
'reference' => '56ac73b6279d3d1580a35e41eee83fced7779e26',
|
10 |
'name' => 'mihdan/cyr2lat',
|
11 |
),
|
12 |
'versions' =>
|
22 |
),
|
23 |
'mihdan/cyr2lat' =>
|
24 |
array (
|
25 |
+
'pretty_version' => '4.6.1',
|
26 |
+
'version' => '4.6.1.0',
|
27 |
'aliases' =>
|
28 |
array (
|
29 |
),
|
30 |
+
'reference' => '56ac73b6279d3d1580a35e41eee83fced7779e26',
|
31 |
),
|
32 |
'roundcube/plugin-installer' =>
|
33 |
array (
|