Call error_log() in wp-db without unnecessary conditionals. fixes #21103.
git-svn-id: https://develop.svn.wordpress.org/trunk@21807 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7846681ed4
commit
26bd73ddd1
@ -1030,11 +1030,7 @@ class wpdb {
|
||||
else
|
||||
$error_str = sprintf( __( 'WordPress database error %1$s for query %2$s' ), $str, $this->last_query );
|
||||
|
||||
if ( function_exists( 'error_log' )
|
||||
&& ( $log_file = @ini_get( 'error_log' ) )
|
||||
&& ( 'syslog' == $log_file || @is_writable( $log_file ) )
|
||||
)
|
||||
@error_log( $error_str );
|
||||
error_log( $error_str );
|
||||
|
||||
// Are we showing errors?
|
||||
if ( ! $this->show_errors )
|
||||
|
Loading…
Reference in New Issue
Block a user