Make WordPress Core

Changeset 12901


Ignore:
Timestamp:
01/29/2010 07:16:07 PM (15 years ago)
Author:
ryan
Message:

Remove db error show/hide, suppress/unsuppress in ms bootstrap. see #11644

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-load.php

    r12885 r12901  
    3131    if ( $current_site->site_name == false )
    3232        $current_site->site_name = ucfirst( $current_site->domain );
    33 
    34     $wpdb->hide_errors();
    3533}
    3634
     
    6765function ms_site_check() {
    6866    global $wpdb, $current_blog;
    69 
    70     $wpdb->show_errors();
    7167
    7268    if ( '1' == $current_blog->deleted ) {
     
    130126        return $current_site;
    131127
    132     $wpdb->suppress_errors();
    133128    $sites = $wpdb->get_results( "SELECT * FROM $wpdb->site" ); // usually only one site
    134129    if ( count( $sites ) == 1 ) {
  • trunk/wp-includes/ms-settings.php

    r12896 r12901  
    116116}
    117117
    118 $wpdb->suppress_errors( false );
    119 
    120118$wpdb->blogid = $current_blog->blog_id;
    121119$wpdb->siteid = $current_blog->site_id;
Note: See TracChangeset for help on using the changeset viewer.