} else { set_transient( $cache_key, $response, DAY_IN_SECONDS ); } return $response; } private function has_update( $remote_plugin_data ) { $slug = $remote_plugin_data['plugin']; $plugins = get_plugins(); if ( empty( $plugins[ $slug ] ) ) { return false; } $plugin = $plugins[ $slug ]; return version_compare( $plugin['Version'], $remote_plugin_data['new_version'], '<' ); } }
Fatal error: Uncaught Error: Class "MetaBox\Updater\Checker" not found in /htdocs/wp-content/plugins/meta-box/inc/loader.php:105 Stack trace: #0 /htdocs/wp-content/plugins/meta-box/meta-box.php(19): RWMB_Loader->init() #1 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #2 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #3 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #4 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #5 /htdocs/index.php(17): require('/htdocs/wp-blog...') #6 {main} thrown in /htdocs/wp-content/plugins/meta-box/inc/loader.php on line 105