Skip to content
Snippets Groups Projects
Commit ce355fd6 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

feature(transients): as autoloaded options

parent c1fb927e
No related branches found
No related tags found
1 merge request!43feature(transients): as autoloaded options
Pipeline #213788 passed
......@@ -397,7 +397,7 @@ if ( ! class_exists( 'WPDesk_Basic_Requirement_Checker' ) ) {
return get_transient( self::PLUGIN_INFO_TRANSIENT_NAME );
} else {
try {
$plugins_option_value = json_decode( get_option( self::PLUGIN_INFO_TRANSIENT_NAME . '' ), true );
$plugins_option_value = json_decode( get_option( self::PLUGIN_INFO_TRANSIENT_NAME, '' ), true );
if ( is_array( $plugins_option_value )
&& isset( $plugins_option_value[ self::EXPIRATION_TIME ], $plugins_option_value[ self::PLUGINS ] )
&& (int) $plugins_option_value[ self::EXPIRATION_TIME ] > $current_time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment