Changeset 15838 for trunk/wp-includes/functions.php
- Timestamp:
- 10/18/2010 09:06:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r15834 r15838 278 278 return true; 279 279 return false; 280 } 281 282 /** 283 * Generates a unique key from an argument 284 * 285 * @since 3.1 286 * 287 * @param mixed $arg 288 * @return string 289 */ 290 function wp_cache_key( $arg ) { 291 if ( is_scalar( $arg ) ) 292 return md5( $arg ); 293 294 $arg = (array) $arg; 295 sort( $arg ); 296 297 return md5( serialize( $arg ) ); 280 298 } 281 299
Note: See TracChangeset
for help on using the changeset viewer.