Cyr-To-Lat - Version 3.6.2

Version Description

(01.02.2019) = * Moved the menu in the settings section * Text domain fixup.

Download this release

Release Info

Developer mihdan
Plugin Icon 128x128 Cyr-To-Lat
Version 3.6.2
Comparing to
See all releases

Code changes from version 3.6.1 to 3.6.2

.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.1
13
- * Stable tag: 3.6.1
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.1' );
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 = 'toplevel_page_cyr-to-lat';
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
- $page_title = __( 'Cyr To Lat', 'cyr2lat' );
223
- $menu_title = __( 'Cyr To Lat', 'cyr2lat' );
224
- $capability = 'manage_options';
225
- $slug = self::PAGE;
226
- $callback = array( $this, 'ctl_settings_page' );
227
- // phpcs:disable WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
228
- $icon = 'data:image/svg+xml;base64,' . base64_encode( '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="512" height="512" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve"><polygon fill="#EEEEEE" points="246.2 411.2 267.9 479.7 273.9 473.1 273.9 473.1 331 411.2 "/><path fill="#EEEEEE" d="M449.7 99.8H269.4l49.8 157.2 24.9-58.5h35.5l75 176.3h-40.2l-16-39.2h-54.3l23.1 72.8 -0.2 0h0.1l-71.7 77.9h154.3c23.4 0 42.4-19 42.4-42.4V142.3C492.1 118.8 473.2 99.8 449.7 99.8z"/><polygon fill="#EEEEEE" points="338.1 301.6 384.6 301.6 361.4 244.8 "/><path fill="#EEEEEE" d="M219.7 24.7H49c-16.6 0-30 13.5-30 30v301.6c0 16.6 13.5 30 30 30h285.3L219.7 24.7zM230.3 302.3c-30.5-8.3-59-21.9-82.9-39.4 -23.8 17.5-52.4 31.1-82.9 39.4l-3.4 0.9L52.7 273.2l3.5-0.9c24.7-6.6 47.2-16.8 67-30.3 -19.6-19.6-34.2-42.5-42.4-66.6H58v-27.2h75.9v-23.6h27.2v23.6h75.9v27.2h-22.7c-8.2 24.1-22.8 47-42.4 66.6 19.8 13.5 42.3 23.6 67 30.3l3.5 0.9 -8.5 30L230.3 302.3zM114 175.4c7.4 17 18.6 32.7 33.4 47 14.8-14.2 26-30 33.4-47H114z"/></svg>' );
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.1
 
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 ComposerAutoloaderInite5b4a5882d35277bc301bb8546f05b78::getLoader();
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 ComposerAutoloaderInite5b4a5882d35277bc301bb8546f05b78 {
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('ComposerAutoloaderInite5b4a5882d35277bc301bb8546f05b78', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInite5b4a5882d35277bc301bb8546f05b78', 'loadClassLoader'));
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);