} if ( ! isset( $_args->slug ) || ( $_args->slug !== $this->plugin_slug ) ) { return $_data; } $cache_key = 'elementor_pro_api_request_' . substr( md5( serialize( $this->plugin_slug ) ), 0, 15 ); $api_request_transient = get_site_transient( $cache_key ); if ( empty( $api_request_transient ) ) { $api_response = API::get_version(); if ( is_wp_error( $api_response ) ) { return $_data; } $api_request_transient = new \stdClass(); $api_request_transient->name = 'Elementor Pro'; $api_request_transient->slug = $this->plugin_slug; $api_request_transient->author = 'Elementor.com'; $api_request_transient->homepage = 'https://elementor.com/'; $api_request_transient->requires = $api_response['requires']; $api_request_transient->tested = $api_response['tested']; $api_request_transient->version = $api_response['new_version']; $api_request_transient->last_updated = $api_response['last_updated']; $api_request_transient->download_link = $api_response['download_link']; $api_request_transient->banners = [ 'high' => 'https://ps.w.org/elementor/assets/banner-1544x500.png?rev=1494133', 'low' => 'https://ps.w.org/elementor/assets/banner-1544x500.png?rev=1494133', ]; $api_request_transient->autoupdate = true; $api_request_transient->sections = unserialize( $api_response['sections'] ); // Expires in 1 day set_site_transient( $cache_key, $api_request_transient, DAY_IN_SECONDS ); } $_data = $api_request_transient; return $_data; } public function show_update_notification( $file, $plugin ) { if ( is_network_admin() ) { return; } if ( ! current_user_can( 'update_plugins' ) ) { return; } if ( ! is_multisite() ) { return; } if ( $this->plugin_name !== $file ) { return; } // Remove our filter on the site transient remove_filter( 'pre_set_site_transient_update_plugins', [ $this, 'check_update' ] ); $update_cache = get_site_transient( 'update_plugins' ); $update_cache = $this->check_transient_data( $update_cache ); set_site_transient( 'update_plugins', $update_cache ); // Restore our filter add_filter( 'pre_set_site_transient_update_plugins', [ $this, 'check_update' ] ); } protected function get_transient( $cache_key ) { $cache_data = get_option( $cache_key ); if ( empty( $cache_data['timeout'] ) || current_time( 'timestamp' ) > $cache_data['timeout'] ) { // Cache is expired. return false; } return $cache_data['value']; } protected function set_transient( $cache_key, $value, $expiration = 0 ) { if ( empty( $expiration ) ) { $expiration = strtotime( '+12 hours', current_time( 'timestamp' ) ); } $data = [ 'timeout' => $expiration, 'value' => $value, ]; update_option( $cache_key, $data, 'no' ); } protected function delete_transient( $cache_key ) { delete_option( $cache_key ); } private function clean_get_version_cache() { // Since `API::get_version` holds the old language. $cache_key = API::TRANSIENT_KEY_PREFIX . ELEMENTOR_PRO_VERSION; delete_option( $cache_key ); } protected function is_elementor_pro_rollback(): bool { return 'elementor_pro_rollback' === ProUtils::_unstable_get_super_global_value( $_GET, 'action' ); } }
Fatal error: Uncaught Error: Class 'ElementorPro\License\Updater' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/elementor-pro/plugin.php:508 Stack trace: #0 /var/www/html/helitower.com.br/web/wp-content/plugins/elementor-pro/plugin.php(139): ElementorPro\Plugin->__construct() #1 /var/www/html/helitower.com.br/web/wp-content/plugins/elementor-pro/plugin.php(528): ElementorPro\Plugin::instance() #2 /var/www/html/helitower.com.br/web/wp-content/plugins/elementor-pro/elementor-pro.php(92): require('/var/www/html/h...') #3 /var/www/html/helitower.com.br/web/wp-includes/class-wp-hook.php(324): elementor_pro_load_plugin('') #4 /var/www/html/helitower.com.br/web/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /var/www/html/helitower.com.br/web/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/html/helitower.com.br/web/wp-settings.php(550): do_action('plugins_loaded') #7 /var/www/html/helitower.com.br/web/wp-config.php(99): require_once('/var/www/html/h...') #8 /var/ in /var/www/html/helitower.com.br/web/wp-content/plugins/elementor-pro/plugin.php on line 508