In the ovic-addon-toolkit/includes/classes/class-core.php file find the verify_envato function that starts around line 572.
public function verify_envato()
{
$key = $this->get_key('envato');
$stylesheet = $this->get_stylesheet();
$id = !empty($stylesheet['envato']) ? $stylesheet['envato'] : 0;
$settings = get_option($key);
$response = array(
'id' => $id,
'active' => false,
'support' => false,
'settings' => array(),
'product' => array(),
);
if (empty($settings['purchased_code']) || empty($stylesheet['envato'])) {
return $response;
}
$api_key = array_merge(array('ovic-envato-license', $id, OVIC_VERSION), $settings);
$cache_key = sanitize_key(implode('-', $api_key));
$options = get_transient($cache_key);
if ($options) {
return $options;
}
In the ovic-addon-toolkit/includes/classes/class-core.php file find the verify_envato function that starts around line 572 and replace it with this.
public function verify_envato()
{ //otvet
set_transient($cache_key, $response, 12 * HOUR_IN_SECONDS);
return array('active'=>true,'product'=>array('supported_until'=>'10.10.2030','item'=>array('name'=>'Armania')));
$key = $this->get_key('envato');
$stylesheet = $this->get_stylesheet();
$id = !empty($stylesheet['envato']) ? $stylesheet['envato'] : 0;
$settings = get_option($key);
$response = array(
'id' => $id,
'active' => false,
'settings' => array(),
'product' => array(),
);
if (empty($settings['purchased_code'])) {
return $response;
}
$api_key = array_merge(array('ovic-envato-license', $id, OVIC_VERSION), $settings);
$cache_key = sanitize_key(implode('-', $api_key));
$options = get_transient($cache_key);
if ($options) {
return $options;
}