static function oik_themes_api($false, $action, $args)
 {
     oik_require_lib("class-oik-remote");
     return oik_remote::oik_lazy_themes_api($false, $action, $args);
 }
 /**
  * Check a plugin for updates
  *
  * The 
  (
     [slug] => oik
     [new_version] => 1.17.1030.1702
     [url] => http://oik-plugins.co.uk/oik_plugin/oik
     [package] => http://oik-plugins.co.uk/plugins/download?plugin=oik-often-included-key-information-kit&version=1.17.1030.1702&id=419&action=update
 )
 */
 function oik_plugins_check()
 {
     $check_plugin = bw_array_get($_REQUEST, "check_plugin", null);
     $check_version = bw_array_get($_REQUEST, "check_version", null);
     if ($check_plugin && $check_version) {
         // Check the plugin from the remote server ? What does this mean? Validate the apikey perhaps?
         //$response = oik_plugins
         oik_require_lib("class-oik-remote");
         $response = oik_remote::oik_check_for_update($check_plugin, $check_version, true);
         bw_trace2($response);
         if (is_wp_error($response)) {
             p("Error checking the plugin: {$check_plugin}");
             $error_message = $response->get_error_message();
             p($error_message);
         } else {
             $new_version = bw_array_get($response, "new_version", null);
             if ($new_version) {
                 p("A new version of the plugin is available");
                 p("Plugin: {$check_plugin}");
                 p("Current version: {$check_version} ");
                 p("New version: {$new_version} ");
                 oik_plugin_record_new_version($check_plugin, $check_version, $response);
                 oik_plugin_new_version($response);
             } else {
                 p("Plugin is up to date.");
                 p("Plugin: {$check_plugin}");
                 p("Current version: {$check_version} ");
             }
         }
     }
 }