WordPress.org

Make WordPress Core

Changeset 13461


Ignore:
Timestamp:
02/27/10 17:48:37 (5 years ago)
Author:
wpmuguru
Message:

warnings cleanup on archived/suspended sites, fixes #12396

Location:
trunk
Files:
2 edited

Legend:

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

    r13435 r13461  
    4949    global $wpdb; 
    5050 
     51    $switched = false; 
    5152    if ( $blog_id != $wpdb->blogid ) { 
    5253        $switch = true; 
  • trunk/wp-includes/general-template.php

    r13425 r13461  
    454454        case 'text_direction': 
    455455            global $wp_locale; 
    456             $output = $wp_locale->text_direction; 
     456            if ( isset( $wp_locale ) ) 
     457                $output = $wp_locale->text_direction; 
     458            else 
     459                $output = 'ltr'; 
    457460            break; 
    458461        case 'name': 
Note: See TracChangeset for help on using the changeset viewer.