Make WordPress Core


Ignore:
Timestamp:
11/18/2015 08:36:50 PM (10 years ago)
Author:
SergeyBiryukov
Message:

I18N: After [35620], move the code for standardizing on \n line endings to Translation_Entry::key().

Props dd32.
Fixes #22172.

File:
1 edited

Legend:

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

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