Edit File by line
/home/zeestwma/ceyloniy.../wp-conte.../plugins/elemento...
File: elementor.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Plugin Name: Elementor
[2] Fix | Delete
* Description: The Elementor Website Builder has it all: drag and drop page builder, pixel perfect design, mobile responsive editing, and more. Get started now!
[3] Fix | Delete
* Plugin URI: https://elementor.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
[4] Fix | Delete
* Version: 3.35.5
[5] Fix | Delete
* Author: Elementor.com
[6] Fix | Delete
* Author URI: https://elementor.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
[7] Fix | Delete
* Requires PHP: 7.4
[8] Fix | Delete
* Requires at least: 6.6
[9] Fix | Delete
* Text Domain: elementor
[10] Fix | Delete
*
[11] Fix | Delete
* @package Elementor
[12] Fix | Delete
* @category Core
[13] Fix | Delete
*
[14] Fix | Delete
* Elementor is free software: you can redistribute it and/or modify
[15] Fix | Delete
* it under the terms of the GNU General Public License as published by
[16] Fix | Delete
* the Free Software Foundation, either version 3 of the License, or
[17] Fix | Delete
* any later version.
[18] Fix | Delete
*
[19] Fix | Delete
* Elementor is distributed in the hope that it will be useful,
[20] Fix | Delete
* but WITHOUT ANY WARRANTY; without even the implied warranty of
[21] Fix | Delete
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[22] Fix | Delete
* GNU General Public License for more details.
[23] Fix | Delete
*/
[24] Fix | Delete
[25] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[26] Fix | Delete
exit; // Exit if accessed directly.
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
define( 'ELEMENTOR_VERSION', '3.35.5' );
[30] Fix | Delete
[31] Fix | Delete
define( 'ELEMENTOR__FILE__', __FILE__ );
[32] Fix | Delete
define( 'ELEMENTOR_PLUGIN_BASE', plugin_basename( ELEMENTOR__FILE__ ) );
[33] Fix | Delete
define( 'ELEMENTOR_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) );
[34] Fix | Delete
[35] Fix | Delete
if ( defined( 'ELEMENTOR_TESTS' ) && ELEMENTOR_TESTS ) {
[36] Fix | Delete
define( 'ELEMENTOR_URL', 'file://' . ELEMENTOR_PATH );
[37] Fix | Delete
} else {
[38] Fix | Delete
define( 'ELEMENTOR_URL', plugins_url( '/', ELEMENTOR__FILE__ ) );
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
define( 'ELEMENTOR_MODULES_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) . '/modules' );
[42] Fix | Delete
define( 'ELEMENTOR_ASSETS_PATH', ELEMENTOR_PATH . 'assets/' );
[43] Fix | Delete
define( 'ELEMENTOR_ASSETS_URL', ELEMENTOR_URL . 'assets/' );
[44] Fix | Delete
[45] Fix | Delete
if ( ! defined( 'ELEMENTOR_EDITOR_EVENTS_MIXPANEL_TOKEN' ) ) {
[46] Fix | Delete
define( 'ELEMENTOR_EDITOR_EVENTS_MIXPANEL_TOKEN', '150605b3b9f979922f2ac5a52e2dcfe9' );
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
if ( file_exists( ELEMENTOR_PATH . 'vendor/autoload.php' ) ) {
[50] Fix | Delete
require_once ELEMENTOR_PATH . 'vendor/autoload.php';
[51] Fix | Delete
// We need this file because of the DI\create function that we are using.
[52] Fix | Delete
// Autoload classmap doesn't include this file.
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
$deprecation_func_file = ELEMENTOR_PATH . 'vendor_prefixed/twig/symfony/deprecation-contracts/function.php';
[56] Fix | Delete
if ( file_exists( $deprecation_func_file ) ) {
[57] Fix | Delete
require_once $deprecation_func_file;
[58] Fix | Delete
if ( ! function_exists( 'trigger_deprecation' ) ) {
[59] Fix | Delete
function trigger_deprecation( string $package, string $version, string $message, ...$args ): void {
[60] Fix | Delete
\ElementorDeps\trigger_deprecation( $package, $version, $message, ...$args );
[61] Fix | Delete
}
[62] Fix | Delete
}
[63] Fix | Delete
}
[64] Fix | Delete
[65] Fix | Delete
if ( ! version_compare( PHP_VERSION, '7.4', '>=' ) ) {
[66] Fix | Delete
add_action( 'admin_notices', 'elementor_fail_php_version' );
[67] Fix | Delete
} elseif ( ! version_compare( get_bloginfo( 'version' ), '6.5', '>=' ) ) {
[68] Fix | Delete
add_action( 'admin_notices', 'elementor_fail_wp_version' );
[69] Fix | Delete
} else {
[70] Fix | Delete
require ELEMENTOR_PATH . 'includes/plugin.php';
[71] Fix | Delete
}
[72] Fix | Delete
[73] Fix | Delete
/**
[74] Fix | Delete
* Elementor admin notice for minimum PHP version.
[75] Fix | Delete
*
[76] Fix | Delete
* Warning when the site doesn't have the minimum required PHP version.
[77] Fix | Delete
*
[78] Fix | Delete
* @since 1.0.0
[79] Fix | Delete
*
[80] Fix | Delete
* @return void
[81] Fix | Delete
*/
[82] Fix | Delete
function elementor_fail_php_version() {
[83] Fix | Delete
$html_message = sprintf(
[84] Fix | Delete
'<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>',
[85] Fix | Delete
esc_html__( 'Elementor isn’t running because PHP is outdated.', 'elementor' ),
[86] Fix | Delete
sprintf(
[87] Fix | Delete
/* translators: %s: PHP version. */
[88] Fix | Delete
esc_html__( 'Update to version %s and get back to creating!', 'elementor' ),
[89] Fix | Delete
'7.4'
[90] Fix | Delete
),
[91] Fix | Delete
esc_html__( 'Show me how', 'elementor' )
[92] Fix | Delete
);
[93] Fix | Delete
[94] Fix | Delete
echo wp_kses_post( $html_message );
[95] Fix | Delete
}
[96] Fix | Delete
[97] Fix | Delete
/**
[98] Fix | Delete
* Elementor admin notice for minimum WordPress version.
[99] Fix | Delete
*
[100] Fix | Delete
* Warning when the site doesn't have the minimum required WordPress version.
[101] Fix | Delete
*
[102] Fix | Delete
* @since 1.5.0
[103] Fix | Delete
*
[104] Fix | Delete
* @return void
[105] Fix | Delete
*/
[106] Fix | Delete
function elementor_fail_wp_version() {
[107] Fix | Delete
$html_message = sprintf(
[108] Fix | Delete
'<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>',
[109] Fix | Delete
esc_html__( 'Elementor isn’t running because WordPress is outdated.', 'elementor' ),
[110] Fix | Delete
sprintf(
[111] Fix | Delete
/* translators: %s: WordPress version. */
[112] Fix | Delete
esc_html__( 'Update to version %s and get back to creating!', 'elementor' ),
[113] Fix | Delete
'6.5'
[114] Fix | Delete
),
[115] Fix | Delete
esc_html__( 'Show me how', 'elementor' )
[116] Fix | Delete
);
[117] Fix | Delete
[118] Fix | Delete
echo wp_kses_post( $html_message );
[119] Fix | Delete
}
[120] Fix | Delete
[121] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function