mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
I18N: In Translations::translate_entry(), account for multi-line strings in files with Windows line endings.
Fixes #22172. git-svn-id: https://develop.svn.wordpress.org/trunk@35620 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -82,6 +82,7 @@ class Translations {
|
||||
*/
|
||||
function translate_entry(&$entry) {
|
||||
$key = $entry->key();
|
||||
$key = str_replace( "\r\n", "\n", $key );
|
||||
return isset($this->entries[$key])? $this->entries[$key] : false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user