WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/06/2011 05:44:29 PM (11 years ago)
Author:
ryan
Message:

Deprecate wp_clone(). Call clone directly. Props hakre. fixes #16813

File:
1 edited

Legend:

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

    r17604 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;
Note: See TracChangeset for help on using the changeset viewer.