Make WordPress Core


Ignore:
Timestamp:
02/19/2010 06:01:50 PM (17 years ago)
Author:
ryan
Message:

Sync pomo. Props nbachiyski. fixes #11832

File:
1 edited

Legend:

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

    r12079 r13228  
    33 * Class for a set of entries for translation and their associated headers
    44 *
    5  * @version $Id: translations.php 291 2009-10-21 05:46:08Z nbachiyski $
     5 * @version $Id: translations.php 406 2010-02-07 11:10:24Z nbachiyski $
    66 * @package pomo
    77 * @subpackage translations
    … …  
    105105         **/
    106106        function merge_with(&$other) {
    107                 $this->entries = array_merge($this->entries, $other->entries);
     107                foreach( $other->entries as $entry ) {
     108                        $this->entries[$entry->key()] = $entry;
     109                }
    108110        }
    109111}
Note: See TracChangeset for help on using the changeset viewer.