/**
* Plugin Name: Hostnet - Plano Cloud
* Plugin URI: https://www.hostnet.com.br
* Description: Plugin essencial para atualização de plugins premiums oferecidos pela Hostnet.
* Version: 1.0.8
* Requires at least: 5.2
* Requires PHP: 7.4
* Author: Hostnet Internet
* Author URI: https://www.hostnet.com.br
* Text Domain: aaa-hn-plano-cloud
* Domain Path: /languages
*/
if ( !defined('ABSPATH') ) {
exit;
}
if(!class_exists('HN_PLANO_CLOUD_PLUGIN')) {
// Plugin version
if ( ! defined( 'HN_PLANO_CLOUD_VERSION_PLUGIN' ) ) {
define( 'HN_PLANO_CLOUD_VERSION_PLUGIN', '1.0.8' );
}
// CSS version
if ( ! defined( 'HN_PLANO_CLOUD_VERSION_CSS' ) ) {
define( 'HN_PLANO_CLOUD_VERSION_CSS', '1.0.0' );
}
// JS version
if ( ! defined( 'HN_PLANO_CLOUD_VERSION_JS' ) ) {
define( 'HN_PLANO_CLOUD_VERSION_JS', '1.0.0' );
}
// Plugin file
if ( ! defined( 'HN_PLANO_CLOUD_FILE' ) ) {
define( 'HN_PLANO_CLOUD_FILE', __FILE__ );
}
// Plugin folder path
if ( ! defined( 'HN_PLANO_CLOUD_PLUGIN_PATH' ) ) {
define( 'HN_PLANO_CLOUD_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
}
// Plugin folder URL
if ( ! defined( 'HN_PLANO_CLOUD_PLUGIN_URL' ) ) {
define( 'HN_PLANO_CLOUD_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
}
define('HN_PLANO_CLOUD_NAME', 'Hostnet - Plano Cloud');
define('HN_PLANO_CLOUD_SLUG', 'aaa-hn-plano-cloud');
define('HN_PLANO_CLOUD_INFO_JSON', 'https://plugins.hostnet.com.br/plugins/aaa-hn-plano-cloud/info.json');
define('HN_PLANO_CLOUD_CACHE_UPDATE', 172800);
if (!class_exists('HN_WAAR_Update')) {
include_once( HN_PLANO_CLOUD_PLUGIN_PATH . 'includes/class-update.php' );
}
class HN_PLANO_CLOUD_PLUGIN {
public function __construct() {
$this->includes();
}
/*
* Adicona Scripts
*/
public function includes() {
include_once( HN_PLANO_CLOUD_PLUGIN_PATH . 'includes/config.php' );
include_once( HN_PLANO_CLOUD_PLUGIN_PATH . 'includes/functions.php' );
include_once( HN_PLANO_CLOUD_PLUGIN_PATH . 'includes/class-settings.php' );
include_once( HN_PLANO_CLOUD_PLUGIN_PATH . 'includes/class-update.php' );
}
}
// Cria a classe caso o plugin esteja ativo.
add_action( 'plugins_loaded', function() {
new HN_PLANO_CLOUD_PLUGIN;
}, 1 );
}
Fatal error: Uncaught Error: Call to undefined function WP_Rocket\Engine\Common\JobManager\APIHandler\wp_safe_remote_get() in /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Engine/Common/JobManager/APIHandler/AbstractSafeAPIClient.php:146
Stack trace:
#0 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Engine/Common/JobManager/APIHandler/AbstractSafeAPIClient.php(75): WP_Rocket\Engine\Common\JobManager\APIHandler\AbstractSafeAPIClient->send_remote_request()
#1 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Engine/Common/JobManager/APIHandler/AbstractSafeAPIClient.php(40): WP_Rocket\Engine\Common\JobManager\APIHandler\AbstractSafeAPIClient->send_request()
#2 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Engine/License/API/PricingClient.php(67): WP_Rocket\Engine\Common\JobManager\APIHandler\AbstractSafeAPIClient->send_get_request()
#3 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Engine/License/API/PricingClient.php(48): WP_Rocket\Engine\License\API\PricingClient->get_raw_pricing_data()
#4 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Engine/License/ServiceProvider.php(51): WP_Rocket\Engine\License\API\PricingClient->get_pricing_data()
#5 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Dependencies/League/Container/ServiceProvider/ServiceProviderAggregate.php(71): WP_Rocket\Engine\License\ServiceProvider->register()
#6 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Dependencies/League/Container/Container.php(192): WP_Rocket\Dependencies\League\Container\ServiceProvider\ServiceProviderAggregate->register()
#7 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Dependencies/League/Container/Container.php(118): WP_Rocket\Dependencies\League\Container\Container->resolve()
#8 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Engine/Admin/Settings/ServiceProvider.php(59): WP_Rocket\Dependencies\League\Container\Container->get()
#9 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Dependencies/League/Container/ServiceProvider/ServiceProviderAggregate.php(71): WP_Rocket\Engine\Admin\Settings\ServiceProvider->register()
#10 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Dependencies/League/Container/Container.php(192): WP_Rocket\Dependencies\League\Container\ServiceProvider\ServiceProviderAggregate->register()
#11 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Dependencies/League/Container/Container.php(118): WP_Rocket\Dependencies\League\Container\Container->resolve()
#12 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Plugin.php(170): WP_Rocket\Dependencies\League\Container\Container->get()
#13 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/main.php(47): WP_Rocket\Plugin->load()
#14 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-includes/class-wp-hook.php(324): rocket_init()
#15 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#16 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#17 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-settings.php(578): do_action()
#18 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-config.php(107): require_once('/home/u36656825...')
#19 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-load.php(50): require_once('/home/u36656825...')
#20 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-admin/admin.php(35): require_once('/home/u36656825...')
#21 /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-admin/index.php(10): require_once('/home/u36656825...')
#22 {main}
thrown in /home/u366568251/domains/nlfpodcast.com.br/public_html/wp-content/plugins/wp-rocket/inc/Engine/Common/JobManager/APIHandler/AbstractSafeAPIClient.php on line 146