| @@ -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 | } |