Edit File by line
/home/zeestwma/richards.../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.31.4
[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
* Text Domain: elementor
[8] Fix | Delete
*
[9] Fix | Delete
* @package Elementor
[10] Fix | Delete
* @category Core
[11] Fix | Delete
*
[12] Fix | Delete
* Elementor is free software: you can redistribute it and/or modify
[13] Fix | Delete
* it under the terms of the GNU General Public License as published by
[14] Fix | Delete
* the Free Software Foundation, either version 3 of the License, or
[15] Fix | Delete
* any later version.
[16] Fix | Delete
*
[17] Fix | Delete
* Elementor is distributed in the hope that it will be useful,
[18] Fix | Delete
* but WITHOUT ANY WARRANTY; without even the implied warranty of
[19] Fix | Delete
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[20] Fix | Delete
* GNU General Public License for more details.
[21] Fix | Delete
*/
[22] Fix | Delete
[23] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[24] Fix | Delete
exit; // Exit if accessed directly.
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
define( 'ELEMENTOR_VERSION', '3.31.4' );
[28] Fix | Delete
[29] Fix | Delete
define( 'ELEMENTOR__FILE__', __FILE__ );
[30] Fix | Delete
define( 'ELEMENTOR_PLUGIN_BASE', plugin_basename( ELEMENTOR__FILE__ ) );
[31] Fix | Delete
define( 'ELEMENTOR_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) );
[32] Fix | Delete
[33] Fix | Delete
if ( defined( 'ELEMENTOR_TESTS' ) && ELEMENTOR_TESTS ) {
[34] Fix | Delete
define( 'ELEMENTOR_URL', 'file://' . ELEMENTOR_PATH );
[35] Fix | Delete
} else {
[36] Fix | Delete
define( 'ELEMENTOR_URL', plugins_url( '/', ELEMENTOR__FILE__ ) );
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
define( 'ELEMENTOR_MODULES_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) . '/modules' );
[40] Fix | Delete
define( 'ELEMENTOR_ASSETS_PATH', ELEMENTOR_PATH . 'assets/' );
[41] Fix | Delete
define( 'ELEMENTOR_ASSETS_URL', ELEMENTOR_URL . 'assets/' );
[42] Fix | Delete
[43] Fix | Delete
if ( file_exists( ELEMENTOR_PATH . 'vendor/autoload.php' ) ) {
[44] Fix | Delete
require_once ELEMENTOR_PATH . 'vendor/autoload.php';
[45] Fix | Delete
// We need this file because of the DI\create function that we are using.
[46] Fix | Delete
// Autoload classmap doesn't include this file.
[47] Fix | Delete
require_once ELEMENTOR_PATH . 'vendor_prefixed/dependency-injection/php-di/php-di/src/functions.php';
[48] Fix | Delete
}
[49] Fix | Delete
[50] Fix | Delete
if ( ! version_compare( PHP_VERSION, '7.4', '>=' ) ) {
[51] Fix | Delete
add_action( 'admin_notices', 'elementor_fail_php_version' );
[52] Fix | Delete
} elseif ( ! version_compare( get_bloginfo( 'version' ), '6.5', '>=' ) ) {
[53] Fix | Delete
add_action( 'admin_notices', 'elementor_fail_wp_version' );
[54] Fix | Delete
} else {
[55] Fix | Delete
require ELEMENTOR_PATH . 'includes/plugin.php';
[56] Fix | Delete
}
[57] Fix | Delete
[58] Fix | Delete
/**
[59] Fix | Delete
* Elementor admin notice for minimum PHP version.
[60] Fix | Delete
*
[61] Fix | Delete
* Warning when the site doesn't have the minimum required PHP version.
[62] Fix | Delete
*
[63] Fix | Delete
* @since 1.0.0
[64] Fix | Delete
*
[65] Fix | Delete
* @return void
[66] Fix | Delete
*/
[67] Fix | Delete
function elementor_fail_php_version() {
[68] Fix | Delete
$html_message = sprintf(
[69] 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>',
[70] Fix | Delete
esc_html__( 'Elementor isn’t running because PHP is outdated.', 'elementor' ),
[71] Fix | Delete
sprintf(
[72] Fix | Delete
/* translators: %s: PHP version. */
[73] Fix | Delete
esc_html__( 'Update to version %s and get back to creating!', 'elementor' ),
[74] Fix | Delete
'7.4'
[75] Fix | Delete
),
[76] Fix | Delete
esc_html__( 'Show me how', 'elementor' )
[77] Fix | Delete
);
[78] Fix | Delete
[79] Fix | Delete
echo wp_kses_post( $html_message );
[80] Fix | Delete
}
[81] Fix | Delete
[82] Fix | Delete
/**
[83] Fix | Delete
* Elementor admin notice for minimum WordPress version.
[84] Fix | Delete
*
[85] Fix | Delete
* Warning when the site doesn't have the minimum required WordPress version.
[86] Fix | Delete
*
[87] Fix | Delete
* @since 1.5.0
[88] Fix | Delete
*
[89] Fix | Delete
* @return void
[90] Fix | Delete
*/
[91] Fix | Delete
function elementor_fail_wp_version() {
[92] Fix | Delete
$html_message = sprintf(
[93] 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>',
[94] Fix | Delete
esc_html__( 'Elementor isn’t running because WordPress is outdated.', 'elementor' ),
[95] Fix | Delete
sprintf(
[96] Fix | Delete
/* translators: %s: WordPress version. */
[97] Fix | Delete
esc_html__( 'Update to version %s and get back to creating!', 'elementor' ),
[98] Fix | Delete
'6.5'
[99] Fix | Delete
),
[100] Fix | Delete
esc_html__( 'Show me how', 'elementor' )
[101] Fix | Delete
);
[102] Fix | Delete
[103] Fix | Delete
echo wp_kses_post( $html_message );
[104] Fix | Delete
}
[105] Fix | Delete
[106] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function