mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2025-09-04 10:32:01 +08:00
revert per Colin
Signed-off-by: Andy Fragen <andy@thefragens.com>
This commit is contained in:
parent
07d4a13d2f
commit
5e7d2d5559
1 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ function get_browser_check_response( string $agent ) {
|
|||
* @return array|null Branch-indexed data from PHP.net, or null on failure.
|
||||
*/
|
||||
function get_php_branches() {
|
||||
$releases = wp_cache_get( 'php_releases' );
|
||||
$releases = get_transient( 'php_releases' );
|
||||
if ( $releases ) {
|
||||
return $releases;
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ function get_php_branches() {
|
|||
$indexed[ $ver['branch'] ] = $ver;
|
||||
}
|
||||
|
||||
wp_cache_set( 'php_releases', $indexed, '', CACHE_LIFETIME );
|
||||
set_transient( 'php_releases', $indexed, CACHE_LIFETIME );
|
||||
return $indexed;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue