Make WordPress Core

Ticket #23232: 23232.patch

File 23232.patch, 1.1 KB (added by SergeyBiryukov, 14 years ago)
  • wp-includes/pomo/mo.php

     
    207207                        $translation = $reader->substr( $strings, $t['pos'], $t['length'] );
    208208
    209209                        if ('' === $original) {
    210                                 $this->set_headers($this->make_headers($translation));
     210                                $headers = $this->make_headers($translation);
     211                                $this->set_headers($headers);
    211212                        } else {
    212213                                $entry = &$this->make_entry($original, $translation);
    213214                                $this->entries[$entry->key()] = &$entry;
  • wp-includes/pomo/po.php

     
    223223                        $res = $this->read_entry($f, $lineno);
    224224                        if (!$res) break;
    225225                        if ($res['entry']->singular == '') {
    226                                 $this->set_headers($this->make_headers($res['entry']->translations[0]));
     226                                $headers = $this->make_headers($res['entry']->translations[0]);
     227                                $this->set_headers($headers);
    227228                        } else {
    228229                                $this->add_entry($res['entry']);
    229230                        }