WordPress.org

Make WordPress Core

Ticket #17128: 17128.patch

File 17128.patch, 685 bytes (added by SergeyBiryukov, 6 years ago)
  • 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       
    6969        function merge_with(&$other) {