WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/11/2012 01:35:43 AM (8 years ago)
Author:
nacin
Message:

Call error_log() in wp-db without unnecessary conditionals. fixes #21103.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r21609 r21807  
    10311031            $error_str = sprintf( __( 'WordPress database error %1$s for query %2$s' ), $str, $this->last_query );
    10321032
    1033         if ( function_exists( 'error_log' )
    1034             && ( $log_file = @ini_get( 'error_log' ) )
    1035             && ( 'syslog' == $log_file || @is_writable( $log_file ) )
    1036             )
    1037             @error_log( $error_str );
     1033        error_log( $error_str );
    10381034
    10391035        // Are we showing errors?
Note: See TracChangeset for help on using the changeset viewer.