PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.2
Elementor Website Builder – more than just a page builder v3.0.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 | elementor.php +27 -51 4.3.0-beta23.0.2 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 most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
5 5 * Plugin URI: https://elementor.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
6 - * Version: 4.3.0-beta2
7 6 * Author: Elementor.com
7 + * Version: 3.0.2
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.8
9 + *
11 10 * Text Domain: elementor
12 11 *
13 12 * @package Elementor
14 13 * @category Core
@@ -27,10 +26,10 @@
27 26 if ( ! defined( 'ABSPATH' ) ) {
28 27 exit; // Exit if accessed directly.
29 28 }
30 29
31 -define( 'ELEMENTOR_VERSION', '4.3.0-beta2' );
32 -define( 'ELEMENTOR_MINIMUM_WP_VERSION', '6.8' );
30 +define( 'ELEMENTOR_VERSION', '3.0.2' );
31 +define( 'ELEMENTOR_PREVIOUS_STABLE_VERSION', '2.9.14' );
33 32
34 33 define( 'ELEMENTOR__FILE__', __FILE__ );
35 34 define( 'ELEMENTOR_PLUGIN_BASE', plugin_basename( ELEMENTOR__FILE__ ) );
36 35 define( 'ELEMENTOR_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) );
@@ -44,33 +43,13 @@
44 43 define( 'ELEMENTOR_MODULES_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) . '/modules' );
45 44 define( 'ELEMENTOR_ASSETS_PATH', ELEMENTOR_PATH . 'assets/' );
46 45 define( 'ELEMENTOR_ASSETS_URL', ELEMENTOR_URL . 'assets/' );
47 46
48 -if ( ! defined( 'ELEMENTOR_EDITOR_EVENTS_MIXPANEL_TOKEN' ) ) {
49 - define( 'ELEMENTOR_EDITOR_EVENTS_MIXPANEL_TOKEN', '150605b3b9f979922f2ac5a52e2dcfe9' );
50 -}
47 +add_action( 'plugins_loaded', 'elementor_load_plugin_textdomain' );
51 48
52 -if ( file_exists( ELEMENTOR_PATH . 'vendor/autoload_packages.php' ) ) {
53 - require_once ELEMENTOR_PATH . 'vendor/autoload_packages.php';
54 -} elseif ( file_exists( ELEMENTOR_PATH . 'vendor/autoload.php' ) ) {
55 - require_once ELEMENTOR_PATH . 'vendor/autoload.php';
56 - // We need this file because of the DI\create function that we are using.
57 - // Autoload classmap doesn't include this file.
58 -}
59 -
60 -$deprecation_func_file = ELEMENTOR_PATH . 'vendor_prefixed/twig/symfony/deprecation-contracts/function.php';
61 -if ( file_exists( $deprecation_func_file ) ) {
62 - require_once $deprecation_func_file;
63 - if ( ! function_exists( 'trigger_deprecation' ) ) {
64 - function trigger_deprecation( string $package, string $version, string $message, ...$args ): void {
65 - \ElementorDeps\trigger_deprecation( $package, $version, $message, ...$args );
66 - }
67 - }
68 -}
69 -
70 -if ( ! version_compare( PHP_VERSION, '7.4', '>=' ) ) {
49 +if ( ! version_compare( PHP_VERSION, '5.6', '>=' ) ) {
71 50 add_action( 'admin_notices', 'elementor_fail_php_version' );
72 -} elseif ( ! version_compare( get_bloginfo( 'version' ), ELEMENTOR_MINIMUM_WP_VERSION, '>=' ) ) {
51 +} elseif ( ! version_compare( get_bloginfo( 'version' ), '5.0', '>=' ) ) {
73 52 add_action( 'admin_notices', 'elementor_fail_wp_version' );
74 53 } else {
75 54 require ELEMENTOR_PATH . 'includes/plugin.php';
76 55 }
@@ -75,8 +54,21 @@
75 54 require ELEMENTOR_PATH . 'includes/plugin.php';
76 55 }
77 56
78 57 /**
58 + * Load Elementor textdomain.
59 + *
60 + * Load gettext translate for Elementor text domain.
61 + *
62 + * @since 1.0.0
63 + *
64 + * @return void
65 + */
66 +function elementor_load_plugin_textdomain() {
67 + load_plugin_textdomain( 'elementor' );
68 +}
69 +
70 +/**
79 71 * Elementor admin notice for minimum PHP version.
80 72 *
81 73 * Warning when the site doesn't have the minimum required PHP version.
82 74 *
@@ -84,19 +76,11 @@
84 76 *
85 77 * @return void
86 78 */
87 79 function elementor_fail_php_version() {
88 - $html_message = sprintf(
89 - '<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>',
90 - esc_html__( 'Elementor isn’t running because PHP is outdated.', 'elementor' ),
91 - sprintf(
92 - /* translators: %s: PHP version. */
93 - esc_html__( 'Update to version %s and get back to creating!', 'elementor' ),
94 - '7.4'
95 - ),
96 - esc_html__( 'Show me how', 'elementor' )
97 - );
98 -
80 + /* translators: %s: PHP version */
81 + $message = sprintf( esc_html__( 'Elementor requires PHP version %s+, plugin is currently NOT RUNNING.', 'elementor' ), '5.6' );
82 + $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
99 83 echo wp_kses_post( $html_message );
100 84 }
101 85
102 86 /**
@@ -108,17 +92,9 @@
108 92 *
109 93 * @return void
110 94 */
111 95 function elementor_fail_wp_version() {
112 - $html_message = sprintf(
113 - '<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>',
114 - esc_html__( 'Elementor isn’t running because WordPress is outdated.', 'elementor' ),
115 - sprintf(
116 - /* translators: %s: WordPress version. */
117 - esc_html__( 'Update to version %s and get back to creating!', 'elementor' ),
118 - ELEMENTOR_MINIMUM_WP_VERSION
119 - ),
120 - esc_html__( 'Show me how', 'elementor' )
121 - );
122 -
96 + /* translators: %s: WordPress version */
97 + $message = sprintf( esc_html__( 'Elementor requires WordPress version %s+. Because you are using an earlier version, the plugin is currently NOT RUNNING.', 'elementor' ), '5.0' );
98 + $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
123 99 echo wp_kses_post( $html_message );
124 100 }