Fix warnings

git-svn-id: https://develop.svn.wordpress.org/trunk@12800 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-01-22 22:14:22 +00:00
parent dbdce87047
commit fcb15685d5
2 changed files with 33 additions and 29 deletions

View File

@@ -1,7 +1,10 @@
<?php
/*
Helper functions for WPMU
*/
/**
* Multi-site WordPress API
*
* @package WordPress
*/
function load_muplugin_textdomain($domain, $path = false) {
$locale = get_locale();
if ( empty($locale) )
@@ -125,11 +128,13 @@ function get_blog_details( $id, $getall = true ) {
if ( !is_numeric( $id ) )
$id = get_id_from_blogname( $id );
$id = (int) $id;
$all = $getall == true ? '' : 'short';
$details = wp_cache_get( $id . $all, 'blog-details' );
if ( $details ) {
if ( $details == -1 )
if ( !is_object($details) && $details == -1 )
return false;
elseif ( !is_object($details) ) // Clear old pre-serialized objects. Cache clients do better with that.
wp_cache_delete( $id . $all, 'blog-details' );