PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.2
Elementor Website Builder – more than just a page builder v3.32.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | modules/apps/admin-apps-page.php +12 -7 4.1.23.32.2 View file →
@@ -2,9 +2,8 @@
2 2 namespace Elementor\Modules\Apps;
3 3
4 4 use Elementor\Core\Isolation\Wordpress_Adapter;
5 5 use Elementor\Core\Isolation\Plugin_Status_Adapter;
6 -use Elementor\Includes\EditorAssetsAPI;
7 6
8 7 if ( ! defined( 'ABSPATH' ) ) {
9 8 exit; // Exit if accessed directly.
10 9 }
@@ -60,15 +59,21 @@
60 59 return static::filter_apps( $apps );
61 60 }
62 61
63 62 private static function get_remote_apps() {
64 - $editor_assets_api = new EditorAssetsAPI( [
65 - EditorAssetsAPI::ASSETS_DATA_URL => static::APPS_URL,
66 - EditorAssetsAPI::ASSETS_DATA_TRANSIENT_KEY => '_elementor_apps_data',
67 - EditorAssetsAPI::ASSETS_DATA_KEY => 'apps',
68 - ] );
63 + $apps = wp_remote_get( static::APPS_URL );
69 64
70 - return $editor_assets_api->get_assets_data();
65 + if ( is_wp_error( $apps ) ) {
66 + return [];
67 + }
68 +
69 + $apps = json_decode( wp_remote_retrieve_body( $apps ), true );
70 +
71 + if ( empty( $apps['apps'] ) || ! is_array( $apps['apps'] ) ) {
72 + return [];
73 + }
74 +
75 + return $apps['apps'];
71 76 }
72 77
73 78 private static function filter_apps( $apps ) {
74 79 $filtered_apps = [];