Changes in trunk/wp-includes/cache.php [16469:17613]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cache.php
r16469 r17613 351 351 $this->cache_hits += 1; 352 352 if ( is_object($this->cache[$group][$id]) ) 353 return wp_clone($this->cache[$group][$id]);353 return clone $this->cache[$group][$id]; 354 354 else 355 355 return $this->cache[$group][$id]; … … 427 427 428 428 if ( is_object($data) ) 429 $data = wp_clone($data);429 $data = clone $data; 430 430 431 431 $this->cache[$group][$id] = $data; … … 458 458 459 459 /** 460 * PHP4 constructor; Calls PHP 5 style constructor461 *462 * @since 2.0.0463 *464 * @return WP_Object_Cache465 */466 function WP_Object_Cache() {467 return $this->__construct();468 }469 470 /**471 460 * Sets up object properties; PHP 5 style constructor 472 461 *
Note: See TracChangeset
for help on using the changeset viewer.