Skip to content

Commit

Permalink
Merge pull request #142 from mihdan/v6.0.5
Browse files Browse the repository at this point in the history
V6.0.5
  • Loading branch information
kagg-design committed Oct 9, 2023
2 parents 2239cd9 + 82ad1c0 commit 184db77
Show file tree
Hide file tree
Showing 6 changed files with 1,551 additions and 1,531 deletions.
4 changes: 2 additions & 2 deletions cyr-to-lat.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Cyr-To-Lat
* Plugin URI: https://wordpress.org/plugins/cyr2lat/
* 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.
* Version: 6.0.4
* Version: 6.0.5
* Requires at least: 5.1
* Requires PHP: 7.0.0
* Author: Sergey Biryukov, Mikhail Kobzarev, Igor Gergel
Expand Down Expand Up @@ -43,7 +43,7 @@
/**
* Plugin version.
*/
define( 'CYR_TO_LAT_VERSION', '6.0.4' );
define( 'CYR_TO_LAT_VERSION', '6.0.5' );

/**
* Path to the plugin dir.
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,24 @@
}
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@wordpress/eslint-plugin": "^14.11.0",
"autoprefixer": "^10.4.14",
"@babel/core": "^7.23.0",
"@babel/preset-env": "^7.22.20",
"@wordpress/eslint-plugin": "^15.1.0",
"autoprefixer": "^10.4.16",
"babel-loader": "^9.1.3",
"coveralls": "^3.1.1",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^5.0.1",
"eslint": "^8.45.0",
"glob": "^10.3.3",
"jest": "^29.6.1",
"jest-environment-jsdom": "^29.6.1",
"eslint": "^8.51.0",
"glob": "^10.3.10",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-fetch-mock": "^3.0.3",
"mini-css-extract-plugin": "^2.7.6",
"terser-webpack-plugin": "^5.3.9",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4",
"webpack-remove-empty-scripts": "^1.0.3"
"webpack-remove-empty-scripts": "^1.0.4"
},
"packageManager": "yarn@3.6.1"
}
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: SergeyBiryukov, mihdan, karevn, webvitaly, kaggdesign
Tags: cyrillic, belorussian, ukrainian, bulgarian, macedonian, georgian, kazakh, latin, l10n, russian, cyr-to-lat, cyr2lat, rustolat, slugs, translations, transliteration
Requires at least: 5.1
Tested up to: 6.3
Stable tag: 6.0.4
Stable tag: 6.0.5
Requires PHP: 7.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -221,6 +221,9 @@ Yes you can!

== Changelog ==

= 6.0.5 (09.10.2023) =
* Fixed displaying file descriptions in the Theme Editor; now in the current locale.

= 6.0.4 (23.09.2023) =
* Fixed disappeared file descriptions on the Theme File Editor page.

Expand Down
3 changes: 3 additions & 0 deletions src/php/Requirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ public function __construct( Settings $settings, AdminNotices $admin_notices, WP
*/
global $wp_file_descriptions;

$admin_locale = get_locale();
load_textdomain( 'default', WP_LANG_DIR . '/admin-' . $admin_locale . '.mo', $admin_locale );

require_once ABSPATH . 'wp-admin/includes/file.php';
}
// @codeCoverageIgnoreEnd
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
/**
* Plugin version.
*/
const CYR_TO_LAT_TEST_VERSION = '6.0.4';
const CYR_TO_LAT_TEST_VERSION = '6.0.5';

/**
* Path to the plugin dir.
Expand Down
Loading

0 comments on commit 184db77

Please sign in to comment.