Opened 8 weeks ago
Closed 7 weeks ago
#63497 closed defect (bug) (fixed)
Docs: Fix parameter order mismatch in wp_cache_cas_by_key()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description (last modified by )
There is a parameter order mismatch in the PHPDoc block for the wp_cache_cas_by_key()
function.
Affected File : /tests/phpunit/includes/object-cache.php
Issue
The function signature is: function wp_cache_cas_by_key( $cas_token, $server_key, $key, $value, $group = '', $expiration = 0 )
But the PHPDoc states:
* @param string $server_key The key identifying the server to store the value on. * @param float $cas_token Unique value associated with the existing item. Generated by memcached.
Proposed Fix:
The PHPDoc should be updated to:
* @param float $cas_token Unique value associated with the existing item. Generated by memcached. * @param string $server_key The key identifying the server to store the value on.
Thank you...
Attachments (3)
Change History (7)
#1
@
8 weeks ago
- Component changed from Cache API to Build/Test Tools
- Keywords commit added
- Milestone changed from Awaiting Review to 6.9
#2
@
8 weeks ago
- Description modified (diff)
- Focuses docs added
- Keywords changes-requested added; commit removed
The casByKey()
function also reverses $server_key
and $cas_token
, on lines 1241 to 1242 of the same file.
Note: See
TracTickets for help on using
tickets.
Hi there!
Nice catch!