Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r11627 r10584  
    33 * Contains Translation_Entry class
    44 *
    5  * @version $Id: entry.php 115 2009-05-11 18:56:15Z nbachiyski $
     5 * @version $Id: entry.php 13 2008-04-21 12:03:37Z nbachiyski $
    66 * @package pomo
    77 * @subpackage entry
     
    4949        $object_varnames = array_keys(get_object_vars($this));
    5050        foreach ($args as $varname => $value) {
    51             $this->$varname = $value;
     51            if (in_array($varname, $object_varnames)) {
     52                $this->$varname = $value;
     53            }
    5254        }
    5355        if (isset($args['plural'])) $this->is_plural = true;
Note: See TracChangeset for help on using the changeset viewer.