Changeset 35714 for trunk/src/wp-includes/pomo/entry.php
- Timestamp:
- 11/20/2015 04:33:12 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pomo/entry.php
r35686 r35714 3 3 * Contains Translation_Entry class 4 4 * 5 * @version $Id: entry.php 718 2012-10-31 00:32:02Z nbachiyski$5 * @version $Id: entry.php 1157 2015-11-20 04:30:11Z dd32 $ 6 6 * @package pomo 7 7 * @subpackage entry … … 50 50 $this->$varname = $value; 51 51 } 52 if (isset($args['plural']) ) $this->is_plural = true;52 if (isset($args['plural']) && $args['plural']) $this->is_plural = true; 53 53 if (!is_array($this->translations)) $this->translations = array(); 54 54 if (!is_array($this->references)) $this->references = array(); … … 69 69 */ 70 70 function key() { 71 if ( is_null($this->singular)) return false;71 if ( null === $this->singular || '' === $this->singular ) return false; 72 72 73 73 // Prepend context and EOT, like in MO files 74 $key = is_null($this->context)? $this->singular : $this->context.chr(4).$this->singular;74 $key = !$this->context? $this->singular : $this->context.chr(4).$this->singular; 75 75 // Standardize on \n line endings 76 76 $key = str_replace( array( "\r\n", "\r" ), "\n", $key );
Note: See TracChangeset
for help on using the changeset viewer.