PluginProbe
Elementor Website Builder – more than just a page builder / 3.9.1
Elementor Website Builder – more than just a page builder v3.9.1
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 | elementor.php +26 -48 4.0.83.9.1 View file →
@@ -1,14 +1,13 @@
1 1 <?php
2 2 /**
3 3 * Plugin Name: Elementor
4 - * Description: The Elementor Website Builder has it all: drag and drop page builder, Atomic Editor, pixel perfect design, global and reusable style systems, mobile responsive editing, and more. Get started now!
4 + * Description: The Elementor Website Builder has it all: drag and drop page builder, pixel perfect design, mobile responsive editing, and more. Get started now!
5 5 * Plugin URI: https://elementor.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
6 - * Version: 4.0.8
7 6 * Author: Elementor.com
7 + * Version: 3.9.1
8 8 * Author URI: https://elementor.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
9 - * Requires PHP: 7.4
10 - * Requires at least: 6.6
9 + *
11 10 * Text Domain: elementor
12 11 *
13 12 * @package Elementor
14 13 * @category Core
@@ -27,9 +26,9 @@
27 26 if ( ! defined( 'ABSPATH' ) ) {
28 27 exit; // Exit if accessed directly.
29 28 }
30 29
31 -define( 'ELEMENTOR_VERSION', '4.0.8' );
30 +define( 'ELEMENTOR_VERSION', '3.9.1' );
32 31
33 32 define( 'ELEMENTOR__FILE__', __FILE__ );
34 33 define( 'ELEMENTOR_PLUGIN_BASE', plugin_basename( ELEMENTOR__FILE__ ) );
35 34 define( 'ELEMENTOR_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) );
@@ -43,31 +42,13 @@
43 42 define( 'ELEMENTOR_MODULES_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) . '/modules' );
44 43 define( 'ELEMENTOR_ASSETS_PATH', ELEMENTOR_PATH . 'assets/' );
45 44 define( 'ELEMENTOR_ASSETS_URL', ELEMENTOR_URL . 'assets/' );
46 45
47 -if ( ! defined( 'ELEMENTOR_EDITOR_EVENTS_MIXPANEL_TOKEN' ) ) {
48 - define( 'ELEMENTOR_EDITOR_EVENTS_MIXPANEL_TOKEN', '150605b3b9f979922f2ac5a52e2dcfe9' );
49 -}
46 +add_action( 'plugins_loaded', 'elementor_load_plugin_textdomain' );
50 47
51 -if ( file_exists( ELEMENTOR_PATH . 'vendor/autoload.php' ) ) {
52 - require_once ELEMENTOR_PATH . 'vendor/autoload.php';
53 - // We need this file because of the DI\create function that we are using.
54 - // Autoload classmap doesn't include this file.
55 -}
56 -
57 -$deprecation_func_file = ELEMENTOR_PATH . 'vendor_prefixed/twig/symfony/deprecation-contracts/function.php';
58 -if ( file_exists( $deprecation_func_file ) ) {
59 - require_once $deprecation_func_file;
60 - if ( ! function_exists( 'trigger_deprecation' ) ) {
61 - function trigger_deprecation( string $package, string $version, string $message, ...$args ): void {
62 - \ElementorDeps\trigger_deprecation( $package, $version, $message, ...$args );
63 - }
64 - }
65 -}
66 -
67 -if ( ! version_compare( PHP_VERSION, '7.4', '>=' ) ) {
48 +if ( ! version_compare( PHP_VERSION, '7.0', '>=' ) ) {
68 49 add_action( 'admin_notices', 'elementor_fail_php_version' );
69 -} elseif ( ! version_compare( get_bloginfo( 'version' ), '6.5', '>=' ) ) {
50 +} elseif ( ! version_compare( get_bloginfo( 'version' ), '5.2', '>=' ) ) {
70 51 add_action( 'admin_notices', 'elementor_fail_wp_version' );
71 52 } else {
72 53 require ELEMENTOR_PATH . 'includes/plugin.php';
73 54 }
@@ -72,8 +53,21 @@
72 53 require ELEMENTOR_PATH . 'includes/plugin.php';
73 54 }
74 55
75 56 /**
57 + * Load Elementor textdomain.
58 + *
59 + * Load gettext translate for Elementor text domain.
60 + *
61 + * @since 1.0.0
62 + *
63 + * @return void
64 + */
65 +function elementor_load_plugin_textdomain() {
66 + load_plugin_textdomain( 'elementor' );
67 +}
68 +
69 +/**
76 70 * Elementor admin notice for minimum PHP version.
77 71 *
78 72 * Warning when the site doesn't have the minimum required PHP version.
79 73 *
@@ -81,19 +75,11 @@
81 75 *
82 76 * @return void
83 77 */
84 78 function elementor_fail_php_version() {
85 - $html_message = sprintf(
86 - '<div class="error"><h3>%1$s</h3><p>%2$s <a href="https://go.elementor.com/wp-dash-update-php/" target="_blank">%3$s</a></p></div>',
87 - esc_html__( 'Elementor isn’t running because PHP is outdated.', 'elementor' ),
88 - sprintf(
89 - /* translators: %s: PHP version. */
90 - esc_html__( 'Update to version %s and get back to creating!', 'elementor' ),
91 - '7.4'
92 - ),
93 - esc_html__( 'Show me how', 'elementor' )
94 - );
95 -
79 + /* translators: %s: PHP version. */
80 + $message = sprintf( esc_html__( 'Elementor requires PHP version %s+, plugin is currently NOT RUNNING.', 'elementor' ), '7.0' );
81 + $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
96 82 echo wp_kses_post( $html_message );
97 83 }
98 84
99 85 /**
@@ -105,17 +91,9 @@
105 91 *
106 92 * @return void
107 93 */
108 94 function elementor_fail_wp_version() {
109 - $html_message = sprintf(
110 - '<div class="error"><h3>%1$s</h3><p>%2$s <a href="https://go.elementor.com/wp-dash-update-wordpress/" target="_blank">%3$s</a></p></div>',
111 - esc_html__( 'Elementor isn’t running because WordPress is outdated.', 'elementor' ),
112 - sprintf(
113 - /* translators: %s: WordPress version. */
114 - esc_html__( 'Update to version %s and get back to creating!', 'elementor' ),
115 - '6.5'
116 - ),
117 - esc_html__( 'Show me how', 'elementor' )
118 - );
119 -
95 + /* translators: %s: WordPress version. */
96 + $message = sprintf( esc_html__( 'Elementor requires WordPress version %s+. Because you are using an earlier version, the plugin is currently NOT RUNNING.', 'elementor' ), '5.2' );
97 + $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
120 98 echo wp_kses_post( $html_message );
121 99 }