Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cache.php

    r16469 r17613  
    351351            $this->cache_hits += 1;
    352352            if ( is_object($this->cache[$group][$id]) )
    353                 return wp_clone($this->cache[$group][$id]);
     353                return clone $this->cache[$group][$id];
    354354            else
    355355                return $this->cache[$group][$id];
     
    427427
    428428        if ( is_object($data) )
    429             $data = wp_clone($data);
     429            $data = clone $data;
    430430
    431431        $this->cache[$group][$id] = $data;
     
    458458
    459459    /**
    460      * PHP4 constructor; Calls PHP 5 style constructor
    461      *
    462      * @since 2.0.0
    463      *
    464      * @return WP_Object_Cache
    465      */
    466     function WP_Object_Cache() {
    467         return $this->__construct();
    468     }
    469 
    470     /**
    471460     * Sets up object properties; PHP 5 style constructor
    472461     *
Note: See TracChangeset for help on using the changeset viewer.