Make WordPress Core

Changeset 1865


Ignore:
Timestamp:
11/19/2004 02:18:23 AM (21 years ago)
Author:
saxmatt
Message:

Don't cache pages with DB errors.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/plugins/staticize-reloaded.php

    r1755 r1865  
    6767        return $buffer;
    6868    endif;
     69
     70    if ( strstr($buffer, 'wpdberror') )
     71        return $buffer;
    6972
    7073    $fr = fopen(CACHE_PATH . $staticFileName, 'a');
     
    142145}
    143146
    144 if(function_exists('add_action')) {
     147if( function_exists('add_action') ) {
    145148    StaticizeInit();
    146149
  • trunk/wp-includes/wp-db.php

    r1545 r1865  
    9494            // If there is an error then take note of it
    9595            print "<div id='error'>
    96             <p><strong>Database error:</strong> [$str]<br />
     96            <p class='wpdberror'><strong>WordPress database error:</strong> [$str]<br />
    9797            <code>$this->last_query</code></p>
    9898            </div>";
Note: See TracChangeset for help on using the changeset viewer.