Changeset 10351
- Timestamp:
- 01/13/2009 06:32:11 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/wp-includes/functions.php
r10218 r10351 2906 2906 * @return object The cloned object 2907 2907 */ 2908 function wp_clone($object) { 2909 return version_compare(phpversion(), '5.0') < 0 ? $object : clone($object); 2908 function wp_clone( $object ) { 2909 static $can_clone; 2910 if ( !isset( $can_clone ) ) { 2911 $can_clone = version_compare( phpversion(), '5.0', '>=' ); 2912 } 2913 return $can_clone ? clone $object : $object; 2910 2914 } 2911 2915
Note: See TracChangeset
for help on using the changeset viewer.