Make WordPress Core

Ticket #17128: pomo-entry-17637.patch

File pomo-entry-17637.patch, 683 bytes (added by wet, 14 years ago)

Replace is_null() with NULL comparison. A low hanging fruit, but 1.5 percent performance increase is maybe better that a sharp stick in the eye. See http://hakre.wordpress.com/2011/03/29/php-is_null-vs-null/.

  • wp-includes/pomo/entry.php

     
    6161         * @return string|bool the key or false if the entry is empty
    6262         */
    6363        function key() {
    64                 if (is_null($this->singular)) return false;
     64                if (NULL === ($this->singular)) return false;
    6565                // prepend context and EOT, like in MO files
    66                 return is_null($this->context)? $this->singular : $this->context.chr(4).$this->singular;
     66                return (NULL === $this->context)? $this->singular : $this->context.chr(4).$this->singular;
    6767        }
    6868}
    6969endif;
     70 No newline at end of file