diff --git a/wp-content/plugins/staticize-reloaded.php b/wp-content/plugins/staticize-reloaded.php index f875d456a..38ba06f1e 100644 --- a/wp-content/plugins/staticize-reloaded.php +++ b/wp-content/plugins/staticize-reloaded.php @@ -67,6 +67,9 @@ function StaticizeCallback($buffer) { return $buffer; endif; + if ( strstr($buffer, 'wpdberror') ) + return $buffer; + $fr = fopen(CACHE_PATH . $staticFileName, 'a'); chmod(CACHE_PATH . $staticFileName, 0666); if (!$fr) @@ -141,7 +144,7 @@ function staticize_header() { } } -if(function_exists('add_action')) { +if( function_exists('add_action') ) { StaticizeInit(); add_action('publish_post', 'postChange', 0); diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index e73118bef..12237270c 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -93,7 +93,7 @@ class wpdb { if ( $this->show_errors ) { // If there is an error then take note of it print "
-

Database error: [$str]
+

WordPress database error: [$str]
$this->last_query

"; } else {