PluginProbe
Elementor Website Builder – more than just a page builder / 3.19.2
Elementor Website Builder – more than just a page builder v3.19.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 | core/common/modules/connect/module.php +14 -16 4.2.33.19.2 View file →
@@ -4,17 +4,15 @@
4 4 use Elementor\Core\Base\Module as BaseModule;
5 5 use Elementor\Core\Common\Modules\Connect\Apps\Base_App;
6 6 use Elementor\Core\Common\Modules\Connect\Apps\Common_App;
7 7 use Elementor\Core\Common\Modules\Connect\Apps\Connect;
8 -use Elementor\Core\Common\Modules\Connect\Apps\Feedback;
9 8 use Elementor\Core\Common\Modules\Connect\Apps\Library;
10 9 use Elementor\Plugin;
11 10 use Elementor\Utils;
12 11 use WP_User_Query;
13 -use Elementor\Core\Common\Modules\Connect\Rest\Rest_Api;
14 12
15 13 if ( ! defined( 'ABSPATH' ) ) {
16 - exit; // Exit if accessed directly.
14 + exit; // Exit if accessed directly
17 15 }
18 16
19 17 class Module extends BaseModule {
20 18 const ACCESS_LEVEL_CORE = 0;
@@ -26,9 +24,8 @@
26 24 const ACCESS_TIER_ESSENTIAL_OCT_2023 = 'essential-oct2023';
27 25 const ACCESS_TIER_ADVANCED = 'advanced';
28 26 const ACCESS_TIER_EXPERT = 'expert';
29 27 const ACCESS_TIER_AGENCY = 'agency';
30 - const ACCESS_TIER_PRO_LEGACY = 'pro';
31 28
32 29 /**
33 30 * @since 2.3.0
34 31 * @access public
@@ -75,9 +72,8 @@
75 72 public function __construct() {
76 73 $this->registered_apps = [
77 74 'connect' => Connect::get_class_name(),
78 75 'library' => Library::get_class_name(),
79 - 'feedback' => Feedback::get_class_name(),
80 76 ];
81 77
82 78 // When using REST API the parent module is construct after the action 'elementor/init'
83 79 // so this part of code make sure to register the module "apps".
@@ -87,10 +83,8 @@
87 83 // Note: The priority 11 is for allowing plugins to add their register callback on elementor init.
88 84 add_action( 'elementor/init', [ $this, 'init' ], 11 );
89 85 }
90 86
91 - add_action( 'rest_api_init', [ $this, 'register_rest_routes' ] );
92 -
93 87 add_filter( 'elementor/tracker/send_tracking_data_params', function ( $params ) {
94 88 return $this->add_tracking_data( $params );
95 89 } );
96 90 }
@@ -124,8 +118,17 @@
124 118 }
125 119 }
126 120
127 121 /**
122 + * @deprecated 3.1.0
123 + */
124 + public function localize_settings() {
125 + Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.1.0' );
126 +
127 + return [];
128 + }
129 +
130 + /**
128 131 * Register app.
129 132 *
130 133 * Registers an app.
131 134 *
@@ -131,15 +134,15 @@
131 134 *
132 135 * @since 2.3.0
133 136 * @access public
134 137 *
135 - * @param string $slug App slug.
136 - * @param string $class_name App full class name.
138 + * @param string $slug App slug.
139 + * @param string $class App full class name.
137 140 *
138 141 * @return self The updated apps manager instance.
139 142 */
140 - public function register_app( $slug, $class_name ) {
141 - $this->registered_apps[ $slug ] = $class_name;
143 + public function register_app( $slug, $class ) {
144 + $this->registered_apps[ $slug ] = $class;
142 145
143 146 return $this;
144 147 }
145 148
@@ -261,11 +264,6 @@
261 264 'users' => $users,
262 265 ];
263 266
264 267 return $params;
265 - }
266 -
267 - public function register_rest_routes() {
268 - $rest_api = new Rest_Api();
269 - $rest_api->register_routes();
270 268 }
271 269 }