| @@ -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.1.4 | |
| 7 | 6 | * Author: Elementor.com |
| 7 | + * Version: 3.19.0-dev3 | |
| 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,9 @@ | ||
| 27 | 26 | if ( ! defined( 'ABSPATH' ) ) { |
| 28 | 27 | exit; // Exit if accessed directly. |
| 29 | 28 | } |
| 30 | 29 | |
| 31 | -define( 'ELEMENTOR_VERSION', '4.1.4' ); | |
| 32 | -define( 'ELEMENTOR_MINIMUM_WP_VERSION', '6.8' ); | |
| 30 | +define( 'ELEMENTOR_VERSION', '3.19.0-dev3' ); | |
| 33 | 31 | |
| 34 | 32 | define( 'ELEMENTOR__FILE__', __FILE__ ); |
| 35 | 33 | define( 'ELEMENTOR_PLUGIN_BASE', plugin_basename( ELEMENTOR__FILE__ ) ); |
| 36 | 34 | define( 'ELEMENTOR_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) ); |
| @@ -44,31 +42,13 @@ | ||
| 44 | 42 | define( 'ELEMENTOR_MODULES_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) . '/modules' ); |
| 45 | 43 | define( 'ELEMENTOR_ASSETS_PATH', ELEMENTOR_PATH . 'assets/' ); |
| 46 | 44 | define( 'ELEMENTOR_ASSETS_URL', ELEMENTOR_URL . 'assets/' ); |
| 47 | 45 | |
| 48 | -if ( ! defined( 'ELEMENTOR_EDITOR_EVENTS_MIXPANEL_TOKEN' ) ) { | |
| 49 | - define( 'ELEMENTOR_EDITOR_EVENTS_MIXPANEL_TOKEN', '150605b3b9f979922f2ac5a52e2dcfe9' ); | |
| 50 | -} | |
| 46 | +add_action( 'plugins_loaded', 'elementor_load_plugin_textdomain' ); | |
| 51 | 47 | |
| 52 | -if ( file_exists( ELEMENTOR_PATH . 'vendor/autoload.php' ) ) { | |
| 53 | - require_once ELEMENTOR_PATH . 'vendor/autoload.php'; | |
| 54 | - // We need this file because of the DI\create function that we are using. | |
| 55 | - // Autoload classmap doesn't include this file. | |
| 56 | -} | |
| 57 | - | |
| 58 | -$deprecation_func_file = ELEMENTOR_PATH . 'vendor_prefixed/twig/symfony/deprecation-contracts/function.php'; | |
| 59 | -if ( file_exists( $deprecation_func_file ) ) { | |
| 60 | - require_once $deprecation_func_file; | |
| 61 | - if ( ! function_exists( 'trigger_deprecation' ) ) { | |
| 62 | - function trigger_deprecation( string $package, string $version, string $message, ...$args ): void { | |
| 63 | - \ElementorDeps\trigger_deprecation( $package, $version, $message, ...$args ); | |
| 64 | - } | |
| 65 | - } | |
| 66 | -} | |
| 67 | - | |
| 68 | 48 | if ( ! version_compare( PHP_VERSION, '7.4', '>=' ) ) { |
| 69 | 49 | add_action( 'admin_notices', 'elementor_fail_php_version' ); |
| 70 | -} elseif ( ! version_compare( get_bloginfo( 'version' ), ELEMENTOR_MINIMUM_WP_VERSION, '>=' ) ) { | |
| 50 | +} elseif ( ! version_compare( get_bloginfo( 'version' ), '6.0', '>=' ) ) { | |
| 71 | 51 | add_action( 'admin_notices', 'elementor_fail_wp_version' ); |
| 72 | 52 | } else { |
| 73 | 53 | require ELEMENTOR_PATH . 'includes/plugin.php'; |
| 74 | 54 | } |
| @@ -73,8 +53,21 @@ | ||
| 73 | 53 | require ELEMENTOR_PATH . 'includes/plugin.php'; |
| 74 | 54 | } |
| 75 | 55 | |
| 76 | 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 | +/** | |
| 77 | 70 | * Elementor admin notice for minimum PHP version. |
| 78 | 71 | * |
| 79 | 72 | * Warning when the site doesn't have the minimum required PHP version. |
| 80 | 73 | * |
| @@ -82,19 +75,18 @@ | ||
| 82 | 75 | * |
| 83 | 76 | * @return void |
| 84 | 77 | */ |
| 85 | 78 | function elementor_fail_php_version() { |
| 86 | - $html_message = sprintf( | |
| 87 | - '<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>', | |
| 88 | - esc_html__( 'Elementor isn’t running because PHP is outdated.', 'elementor' ), | |
| 89 | - sprintf( | |
| 90 | - /* translators: %s: PHP version. */ | |
| 91 | - esc_html__( 'Update to version %s and get back to creating!', 'elementor' ), | |
| 92 | - '7.4' | |
| 93 | - ), | |
| 94 | - esc_html__( 'Show me how', 'elementor' ) | |
| 79 | + $message = sprintf( | |
| 80 | + /* translators: 1: `<h3>` opening tag, 2: `</h3>` closing tag, 3: PHP version. 4: Link opening tag, 5: Link closing tag. */ | |
| 81 | + esc_html__( '%1$sElementor isn’t running because PHP is outdated.%2$s Update to PHP version %3$s and get back to creating! %4$sShow me how%5$s', 'elementor' ), | |
| 82 | + '<h3>', | |
| 83 | + '</h3>', | |
| 84 | + '7.4', | |
| 85 | + '<a href="https://go.elementor.com/wp-dash-update-php/" target="_blank">', | |
| 86 | + '</a>' | |
| 95 | 87 | ); |
| 96 | - | |
| 88 | + $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) ); | |
| 97 | 89 | echo wp_kses_post( $html_message ); |
| 98 | 90 | } |
| 99 | 91 | |
| 100 | 92 | /** |
| @@ -106,17 +98,16 @@ | ||
| 106 | 98 | * |
| 107 | 99 | * @return void |
| 108 | 100 | */ |
| 109 | 101 | function elementor_fail_wp_version() { |
| 110 | - $html_message = sprintf( | |
| 111 | - '<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>', | |
| 112 | - esc_html__( 'Elementor isn’t running because WordPress is outdated.', 'elementor' ), | |
| 113 | - sprintf( | |
| 114 | - /* translators: %s: WordPress version. */ | |
| 115 | - esc_html__( 'Update to version %s and get back to creating!', 'elementor' ), | |
| 116 | - ELEMENTOR_MINIMUM_WP_VERSION | |
| 117 | - ), | |
| 118 | - esc_html__( 'Show me how', 'elementor' ) | |
| 102 | + $message = sprintf( | |
| 103 | + /* translators: 1: `<h3>` opening tag, 2: `</h3>` closing tag, 3: WP version. 4: Link opening tag, 5: Link closing tag. */ | |
| 104 | + esc_html__( '%1$sElementor isn’t running because WordPress is outdated.%2$s Update to version %3$s and get back to creating! %4$sShow me how%5$s', 'elementor' ), | |
| 105 | + '<h3>', | |
| 106 | + '</h3>', | |
| 107 | + '6.0', | |
| 108 | + '<a href="https://go.elementor.com/wp-dash-update-wordpress/" target="_blank">', | |
| 109 | + '</a>' | |
| 119 | 110 | ); |
| 120 | - | |
| 111 | + $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) ); | |
| 121 | 112 | echo wp_kses_post( $html_message ); |
| 122 | 113 | } |