$key should be $transient_name

#5777
This commit is contained in:
Mike Jolley 2014-07-03 13:02:19 +01:00
parent ee48dcd5fd
commit 5946e3fd7c
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class WC_Cache_Helper {
*/
public static function get_transient_version( $group, $refresh = false ) {
$transient_name = $group . '-transient-version';
$transient_value = get_transient( $key );
$transient_value = get_transient( $transient_name );
if ( false === $transient_value || true === $refresh ) {
$transient_value = time();