warnings cleanup on archived/suspended sites, fixes #12396
git-svn-id: https://develop.svn.wordpress.org/trunk@13461 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
60a2d570c0
commit
97da99aa6a
@ -48,6 +48,7 @@ add_filter( 'wp_handle_upload_prefilter', 'check_upload_size' );
|
||||
function wpmu_delete_blog($blog_id, $drop = false) {
|
||||
global $wpdb;
|
||||
|
||||
$switched = false;
|
||||
if ( $blog_id != $wpdb->blogid ) {
|
||||
$switch = true;
|
||||
switch_to_blog($blog_id);
|
||||
|
@ -453,7 +453,10 @@ function get_bloginfo( $show = '', $filter = 'raw' ) {
|
||||
break;
|
||||
case 'text_direction':
|
||||
global $wp_locale;
|
||||
$output = $wp_locale->text_direction;
|
||||
if ( isset( $wp_locale ) )
|
||||
$output = $wp_locale->text_direction;
|
||||
else
|
||||
$output = 'ltr';
|
||||
break;
|
||||
case 'name':
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user