Don't cache pages with DB errors.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -93,7 +93,7 @@ class wpdb {
|
||||
if ( $this->show_errors ) {
|
||||
// If there is an error then take note of it
|
||||
print "<div id='error'>
|
||||
<p><strong>Database error:</strong> [$str]<br />
|
||||
<p class='wpdberror'><strong>WordPress database error:</strong> [$str]<br />
|
||||
<code>$this->last_query</code></p>
|
||||
</div>";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user