WordPress.org

Make WordPress Core

Ticket #5771: 5771.diff

File 5771.diff, 531 bytes (added by tenpura, 10 years ago)
  • wp-includes/wp-db.php

     
    184184                $error_str = "WordPress database error $str for query $this->last_query";
    185185                if ( $caller = $this->get_caller() )
    186186                        $error_str .= " made by $caller";
    187                 @error_log($error_str, 0);
     187                if (function_exists('error_log'))
     188                        @error_log($error_str, 0);
    188189
    189190                // Is error output turned on or not..
    190191                if ( !$this->show_errors )