Make WordPress Core

Ticket #29583: class-wp-error.php.patch

File class-wp-error.php.patch, 343 bytes (added by bjornjohansen, 10 years ago)
  • .php

    old new  
    7575         * @return mixed Property.
    7676         */
    7777        public function __get( $name ) {
    78                 return $this->$name;
     78                $ret = null;
     79                if ( isset( $this->$name ) ) {
     80                        $ret = $this->$name;
     81                }
     82                return $ret;
    7983        }
    8084
    8185        /**