PluginProbe
Elementor Website Builder – more than just a page builder / 3.20.2
Elementor Website Builder – more than just a page builder v3.20.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/app.php +5 -21 4.1.23.20.2 View file →
@@ -5,10 +5,10 @@
5 5 use Elementor\Core\Common\Modules\Ajax\Module as Ajax;
6 6 use Elementor\Core\Common\Modules\Finder\Module as Finder;
7 7 use Elementor\Core\Common\Modules\Connect\Module as Connect;
8 8 use Elementor\Core\Common\Modules\EventTracker\Module as Event_Tracker;
9 -use Elementor\Core\Common\Modules\EventsManager\Module as Events_Manager;
10 9 use Elementor\Core\Files\Uploads_Manager;
10 +use Elementor\Core\Settings\Manager as SettingsManager;
11 11 use Elementor\Icons_Manager;
12 12 use Elementor\Plugin;
13 13 use Elementor\Utils;
14 14
@@ -35,11 +35,11 @@
35 35 */
36 36 public function __construct() {
37 37 $this->add_default_templates();
38 38
39 - add_action( 'elementor/editor/before_enqueue_scripts', [ $this, 'register_scripts' ], 9 );
40 - add_action( 'admin_enqueue_scripts', [ $this, 'register_scripts' ], 9 );
41 - add_action( 'wp_enqueue_scripts', [ $this, 'register_scripts' ], 9 );
39 + add_action( 'elementor/editor/before_enqueue_scripts', [ $this, 'register_scripts' ] );
40 + add_action( 'admin_enqueue_scripts', [ $this, 'register_scripts' ] );
41 + add_action( 'wp_enqueue_scripts', [ $this, 'register_scripts' ] );
42 42
43 43 add_action( 'elementor/editor/before_enqueue_styles', [ $this, 'register_styles' ] );
44 44 add_action( 'admin_enqueue_scripts', [ $this, 'register_styles' ] );
45 45 add_action( 'wp_enqueue_scripts', [ $this, 'register_styles' ], 9 );
@@ -68,14 +68,8 @@
68 68
69 69 $this->add_component( 'connect', new Connect() );
70 70
71 71 $this->add_component( 'event-tracker', new Event_Tracker() );
72 -
73 - Plugin::$instance->experiments->add_feature( Events_Manager::get_experimental_data() );
74 -
75 - if ( Plugin::$instance->experiments->is_feature_active( Events_Manager::EXPERIMENT_NAME ) ) {
76 - $this->add_component( 'events-manager', new Events_Manager() );
77 - }
78 72 }
79 73
80 74 /**
81 75 * Get name.
@@ -245,26 +239,18 @@
245 239 * @return array
246 240 */
247 241 protected function get_init_settings() {
248 242 $active_experimental_features = Plugin::$instance->experiments->get_active_features();
249 - $all_experimental_features = Plugin::$instance->experiments->get_features();
250 243
251 244 $active_experimental_features = array_fill_keys( array_keys( $active_experimental_features ), true );
252 - $all_experimental_features = array_map(
253 - function( $feature ) {
254 - return Plugin::$instance->experiments->is_feature_active( $feature['name'] );
255 - },
256 - $all_experimental_features
257 - );
258 245
259 246 $config = [
260 247 'version' => ELEMENTOR_VERSION,
261 248 'isRTL' => is_rtl(),
262 249 'isDebug' => ( defined( 'WP_DEBUG' ) && WP_DEBUG ),
263 - 'isElementorDebug' => Utils::is_elementor_debug(),
250 + 'isElementorDebug' => ( defined( 'ELEMENTOR_DEBUG' ) && ELEMENTOR_DEBUG ),
264 251 'activeModules' => array_keys( $this->get_components() ),
265 252 'experimentalFeatures' => $active_experimental_features,
266 - 'allExperimentalFeatures' => $all_experimental_features,
267 253 'urls' => [
268 254 'assets' => ELEMENTOR_ASSETS_URL,
269 255 'rest' => get_rest_url(),
270 256 ],
@@ -270,9 +256,8 @@
270 256 ],
271 257 'filesUpload' => [
272 258 'unfilteredFiles' => Uploads_Manager::are_unfiltered_uploads_enabled(),
273 259 ],
274 - 'editor_events' => Events_Manager::get_editor_events_config(),
275 260 ];
276 261
277 262 /**
278 263 * Localize common settings.
@@ -289,9 +274,8 @@
289 274 /**
290 275 * Add default templates.
291 276 *
292 277 * Register common app default templates.
293 - *
294 278 * @since 2.3.0
295 279 * @access private
296 280 */
297 281 private function add_default_templates() {