Version Description
(01.02.2019) = * Moved the menu in the settings section * Text domain fixup.
Download this release
Release Info
Developer | mihdan |
Plugin | Cyr-To-Lat |
Version | 3.6.2 |
Comparing to | |
See all releases |
Code changes from version 3.6.1 to 3.6.2
- .editorconfig +0 -22
- cyr-to-lat.php +3 -3
- includes/class-cyr-to-lat-main.php +0 -1
- includes/class-cyr-to-lat-settings.php +8 -11
- readme.txt +10 -1
- vendor/autoload_52.php +1 -1
- vendor/composer/autoload_real_52.php +3 -3
.editorconfig
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
# This file is for unifying the coding style for different editors and IDEs
|
2 |
-
# editorconfig.org
|
3 |
-
|
4 |
-
# WordPress Coding Standards
|
5 |
-
# https://make.wordpress.org/core/handbook/coding-standards/
|
6 |
-
|
7 |
-
root = true
|
8 |
-
|
9 |
-
[*]
|
10 |
-
charset = utf-8
|
11 |
-
end_of_line = lf
|
12 |
-
insert_final_newline = true
|
13 |
-
trim_trailing_whitespace = true
|
14 |
-
indent_style = tab
|
15 |
-
indent_size = 4
|
16 |
-
|
17 |
-
[{.jshintrc,*.json,*.yml}]
|
18 |
-
indent_style = space
|
19 |
-
indent_size = 2
|
20 |
-
|
21 |
-
[{*.txt,wp-config-sample.php}]
|
22 |
-
end_of_line = crlf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cyr-to-lat.php
CHANGED
@@ -9,8 +9,8 @@
|
|
9 |
* Author URI: https://profiles.wordpress.org/sergeybiryukov/
|
10 |
* Requires at least: 2.3
|
11 |
* Tested up to: 5.1
|
12 |
-
* Version: 3.6.
|
13 |
-
* Stable tag: 3.6.
|
14 |
*
|
15 |
* Text Domain: cyr-to-lat
|
16 |
* Domain Path: /languages/
|
@@ -41,7 +41,7 @@ define( 'CYR_TO_LAT_FILE', __FILE__ );
|
|
41 |
/**
|
42 |
* Plugin version.
|
43 |
*/
|
44 |
-
define( 'CYR_TO_LAT_VERSION', '3.6.
|
45 |
|
46 |
/**
|
47 |
* Init plugin class on plugin load.
|
9 |
* Author URI: https://profiles.wordpress.org/sergeybiryukov/
|
10 |
* Requires at least: 2.3
|
11 |
* Tested up to: 5.1
|
12 |
+
* Version: 3.6.2
|
13 |
+
* Stable tag: 3.6.2
|
14 |
*
|
15 |
* Text Domain: cyr-to-lat
|
16 |
* Domain Path: /languages/
|
41 |
/**
|
42 |
* Plugin version.
|
43 |
*/
|
44 |
+
define( 'CYR_TO_LAT_VERSION', '3.6.2' );
|
45 |
|
46 |
/**
|
47 |
* Init plugin class on plugin load.
|
includes/class-cyr-to-lat-main.php
CHANGED
@@ -38,7 +38,6 @@ class Cyr_To_Lat_Main {
|
|
38 |
public function init_hooks() {
|
39 |
add_filter( 'sanitize_title', array( $this, 'ctl_sanitize_title' ), 9, 3 );
|
40 |
add_filter( 'sanitize_file_name', array( $this, 'ctl_sanitize_title' ), 10, 2 );
|
41 |
-
|
42 |
add_filter( 'wp_insert_post_data', array( $this, 'ctl_sanitize_post_name' ), 10, 2 );
|
43 |
|
44 |
if ( 'yes' === $this->settings->get_option( 'convert_existing_slugs' ) ) {
|
38 |
public function init_hooks() {
|
39 |
add_filter( 'sanitize_title', array( $this, 'ctl_sanitize_title' ), 9, 3 );
|
40 |
add_filter( 'sanitize_file_name', array( $this, 'ctl_sanitize_title' ), 10, 2 );
|
|
|
41 |
add_filter( 'wp_insert_post_data', array( $this, 'ctl_sanitize_post_name' ), 10, 2 );
|
42 |
|
43 |
if ( 'yes' === $this->settings->get_option( 'convert_existing_slugs' ) ) {
|
includes/class-cyr-to-lat-settings.php
CHANGED
@@ -17,7 +17,7 @@ class Cyr_To_Lat_Settings {
|
|
17 |
*
|
18 |
* @var string
|
19 |
*/
|
20 |
-
const SCREEN_ID = '
|
21 |
|
22 |
/**
|
23 |
* Option group.
|
@@ -219,16 +219,13 @@ class Cyr_To_Lat_Settings {
|
|
219 |
* Add settings page to the menu.
|
220 |
*/
|
221 |
public function add_settings_page() {
|
222 |
-
$
|
223 |
-
$
|
224 |
-
$
|
225 |
-
$
|
226 |
-
$
|
227 |
-
|
228 |
-
$
|
229 |
-
// phpcs:enable
|
230 |
-
$position = null;
|
231 |
-
add_menu_page( $page_title, $menu_title, $capability, $slug, $callback, $icon );
|
232 |
}
|
233 |
|
234 |
/**
|
17 |
*
|
18 |
* @var string
|
19 |
*/
|
20 |
+
const SCREEN_ID = 'settings_page_cyr-to-lat';
|
21 |
|
22 |
/**
|
23 |
* Option group.
|
219 |
* Add settings page to the menu.
|
220 |
*/
|
221 |
public function add_settings_page() {
|
222 |
+
$parent_slug = 'options-general.php';
|
223 |
+
$page_title = __( 'Cyr To Lat', 'cyr2lat' );
|
224 |
+
$menu_title = __( 'Cyr To Lat', 'cyr2lat' );
|
225 |
+
$capability = 'manage_options';
|
226 |
+
$slug = self::PAGE;
|
227 |
+
$callback = array( $this, 'ctl_settings_page' );
|
228 |
+
add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $slug, $callback );
|
|
|
|
|
|
|
229 |
}
|
230 |
|
231 |
/**
|
readme.txt
CHANGED
@@ -3,7 +3,8 @@ Contributors: SergeyBiryukov, mihdan, karevn, webvitaly, kaggdesign
|
|
3 |
Tags: cyrillic, georgian, latin, l10n, russian, rustolat, slugs, translations, transliteration
|
4 |
Requires at least: 2.3
|
5 |
Tested up to: 5.1
|
6 |
-
Stable tag: 3.6.
|
|
|
7 |
|
8 |
Converts Cyrillic characters in post, page and term slugs to Latin characters.
|
9 |
|
@@ -39,8 +40,16 @@ function my_cyr_to_lat_table($ctl_table) {
|
|
39 |
add_filter('ctl_table', 'my_cyr_to_lat_table');
|
40 |
`
|
41 |
|
|
|
|
|
|
|
|
|
42 |
== Changelog ==
|
43 |
|
|
|
|
|
|
|
|
|
44 |
= 3.6.1 (31.01.2019) =
|
45 |
* Text domain corrected.
|
46 |
|
3 |
Tags: cyrillic, georgian, latin, l10n, russian, rustolat, slugs, translations, transliteration
|
4 |
Requires at least: 2.3
|
5 |
Tested up to: 5.1
|
6 |
+
Stable tag: 3.6.2
|
7 |
+
Requires PHP: 5.2
|
8 |
|
9 |
Converts Cyrillic characters in post, page and term slugs to Latin characters.
|
10 |
|
40 |
add_filter('ctl_table', 'my_cyr_to_lat_table');
|
41 |
`
|
42 |
|
43 |
+
= Can I contribute? =
|
44 |
+
|
45 |
+
Yes you can! Join in on our [GitHub repository](https://github.com/mihdan/cyr2lat)
|
46 |
+
|
47 |
== Changelog ==
|
48 |
|
49 |
+
= 3.6.2 (01.02.2019) =
|
50 |
+
* Moved the menu in the settings section
|
51 |
+
* Text domain fixup.
|
52 |
+
|
53 |
= 3.6.1 (31.01.2019) =
|
54 |
* Text domain corrected.
|
55 |
|
vendor/autoload_52.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitd71b6b279de2d8e5b477a7d084c5a539::getLoader();
|
vendor/composer/autoload_real_52.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
-
class
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInite5b4a5882d35277bc301bb8546f05b78 {
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
+
class ComposerAutoloaderInitd71b6b279de2d8e5b477a7d084c5a539 {
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitd71b6b279de2d8e5b477a7d084c5a539', 'loadClassLoader'), true /*, true */);
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitd71b6b279de2d8e5b477a7d084c5a539', 'loadClassLoader'));
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|