Changeset 27064
- Timestamp:
- 02/01/2014 10:24:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cache.php
r26868 r27064 389 389 * Remove the contents of the cache key in the group 390 390 * 391 * If the cache key does not exist in the group and $force parameter is set392 * to false, then nothing will happen. The $force parameter is set to false393 * by default.391 * If the cache key does not exist in the group, then nothing will happen. 392 * There used to be a 3rd param (bool $force Optional. Whether to 393 * force the unsetting of the cache key in the group). 394 394 * 395 395 * @since 2.0.0 … … 397 397 * @param int|string $key What the contents in the cache are called 398 398 * @param string $group Where the cache contents are grouped 399 * @param bool $force Optional. Whether to force the unsetting of the cache 400 * key in the group 399 * 401 400 * @return bool False if the contents weren't deleted and true on success 402 401 */ 403 function delete( $key, $group = 'default', $force = false) {402 function delete( $key, $group = 'default' ) { 404 403 if ( empty( $group ) ) 405 404 $group = 'default'; … … 408 407 $key = $this->blog_prefix . $key; 409 408 410 if ( ! $ force && ! $this->_exists( $key, $group ) )409 if ( ! $this->_exists( $key, $group ) ) 411 410 return false; 412 411
Note: See TracChangeset
for help on using the changeset viewer.