From 1508b46bb4ee31743b44253c42c0b11f6569ed21 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 11 Sep 2012 01:35:43 +0000 Subject: [PATCH] Call error_log() in wp-db without unnecessary conditionals. fixes #21103. git-svn-id: http://core.svn.wordpress.org/trunk@21807 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/wp-db.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 2600d8e22a..8361e15361 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -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 )