PluginProbe
Elementor Website Builder – more than just a page builder / 3.2.4
Elementor Website Builder – more than just a page builder v3.2.4
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 | core/debug/classes/htaccess.php +3 -5 4.1.43.2.4 View file →
@@ -1,9 +1,8 @@
1 1 <?php
2 2 namespace Elementor\Core\Debug\Classes;
3 3
4 4 use Elementor\Modules\SafeMode\Module as Safe_Mode;
5 -use Elementor\Utils;
6 5
7 6 class Htaccess extends Inspection_Base {
8 7
9 8 private $message = '';
@@ -8,9 +7,9 @@
8 7
9 8 private $message = '';
10 9
11 10 public function __construct() {
12 - $this->message = esc_html__( 'Your site\'s .htaccess file appears to be missing.', 'elementor' );
11 + $this->message = __( 'Your site\'s .htaccess file appears to be missing.', 'elementor' );
13 12 }
14 13
15 14 public function run() {
16 15 $safe_mode_enabled = get_option( Safe_Mode::OPTION_ENABLED, '' );
@@ -22,14 +21,13 @@
22 21 if ( empty( $permalink_structure ) || empty( $_SERVER['SERVER_SOFTWARE'] ) ) {
23 22 return true;
24 23 }
25 24
26 - $server = strtoupper( Utils::get_super_global_value( $_SERVER, 'SERVER_SOFTWARE' ) );
25 + $server = strtoupper( $_SERVER['SERVER_SOFTWARE'] );
27 26
28 27 if ( strstr( $server, 'APACHE' ) ) {
29 28 $htaccess_file = get_home_path() . '.htaccess';
30 - /* translators: %s: Path to .htaccess file. */
31 - $this->message .= ' ' . sprintf( esc_html__( 'File Path: %s', 'elementor' ), $htaccess_file ) . ' ';
29 + $this->message .= ' ' . sprintf( __( 'File Path: %s', 'elementor' ), $htaccess_file ) . ' ';
32 30 return file_exists( $htaccess_file );
33 31 }
34 32 return true;
35 33 }