Make WordPress Core


Ignore:
Timestamp:
11/17/2008 09:01:12 PM (16 years ago)
Author:
ryan
Message:

Use clone to break object refs when setting and getting cache. see #8146 #8191

File:
1 edited

Legend:

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

    r9662 r9740  
    28732873}
    28742874
     2875function wp_clone($object) {
     2876  return version_compare(phpversion(), '5.0') < 0 ? $object : clone($object);
     2877}
     2878
     2879
    28752880?>
Note: See TracChangeset for help on using the changeset viewer.