WordPress.org

Make WordPress Core

Ticket #21103: patch

File patch, 560 bytes (added by apimlott, 3 years ago)

Patch against WordPress 3.4

  • (a) wp-includes/wp-db.php vs. (b) -

    a b  
    932932                else 
    933933                        $error_str = sprintf( __( 'WordPress database error %1$s for query %2$s' ), $str, $this->last_query ); 
    934934 
     935                $log_file = @ini_get('error_log'); 
    935936                if ( function_exists( 'error_log' ) 
    936                         && ( $log_file = @ini_get( 'error_log' ) ) 
    937                         && ( 'syslog' == $log_file || @is_writable( $log_file ) ) 
     937                        && ( '' == $log_file || 'syslog' == $log_file || @is_writable( $log_file ) ) 
    938938                        ) 
    939939                        @error_log( $error_str ); 
    940940