Make WordPress Core


Ignore:
Timestamp:
01/22/2010 10:14:22 PM (17 years ago)
Author:
ryan
Message:

Fix warnings

File:
1 edited

Legend:

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

    r12796 r12800  
    11<?php
    2 /*
    3         Helper functions for WPMU
    4 */
     2/**
     3 * Multi-site WordPress API
     4 *
     5 * @package WordPress
     6 */
     7
    58function load_muplugin_textdomain($domain, $path = false) {
    69        $locale = get_locale();
    … …  
    126129                $id = get_id_from_blogname( $id );
    127130
     131        $id = (int) $id;
     132
    128133        $all = $getall == true ? '' : 'short';
    129134        $details = wp_cache_get( $id . $all, 'blog-details' );
    130135
    131136        if ( $details ) {
    132                 if ( $details == -1 )
     137                if ( !is_object($details) && $details == -1 )
    133138                        return false;
    134139                elseif ( !is_object($details) ) // Clear old pre-serialized objects. Cache clients do better with that.
Note: See TracChangeset for help on using the changeset viewer.