Skip to content
Snippets Groups Projects

feature(transients): as autoloaded options

Merged Grzegorz Rola requested to merge feature/transients2 into master
1 unresolved thread
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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
Loading