Make WordPress Core

Changeset 35620


Ignore:
Timestamp:
11/11/2015 10:48:22 PM (10 years ago)
Author:
SergeyBiryukov
Message:

I18N: In Translations::translate_entry(), account for multi-line strings in files with Windows line endings.

Fixes #22172.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pomo/translations.php

    r34348 r35620  
    8383    function translate_entry(&$entry) {
    8484        $key = $entry->key();
     85        $key = str_replace( "\r\n", "\n", $key );
    8586        return isset($this->entries[$key])? $this->entries[$key] : false;
    8687    }
Note: See TracChangeset for help on using the changeset viewer.