Server IP : 172.67.157.199 / Your IP : 3.141.27.97 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/plugins/elementor/core/debug/ |
Upload File : |
<?php namespace Elementor\Core\Debug; use Elementor\Core\Debug\Classes\Inspection_Base; use Elementor\Core\Debug\Classes\Theme_Missing; use Elementor\Core\Debug\Classes\Htaccess; class Loading_Inspection_Manager { public static $_instance = null; public static function instance() { if ( null === self::$_instance ) { self::$_instance = new Loading_Inspection_Manager(); } return self::$_instance; } /** @var Inspection_Base[] */ private $inspections = []; public function register_inspections() { $this->inspections['theme-missing'] = new Theme_Missing(); $this->inspections['htaccess'] = new Htaccess(); } /** * @param Inspection_Base $inspection */ public function register_inspection( $inspection ) { $this->inspections[ $inspection->get_name() ] = $inspection; } public function run_inspections() { $debug_data = [ 'message' => esc_html__( "We’re sorry, but something went wrong. Click on 'Learn more' and follow each of the steps to quickly solve it.", 'elementor' ), 'header' => esc_html__( 'The preview could not be loaded', 'elementor' ), 'doc_url' => 'https://go.elementor.com/preview-not-loaded/', ]; foreach ( $this->inspections as $inspection ) { if ( ! $inspection->run() ) { $debug_data = [ 'message' => $inspection->get_message(), 'header' => $inspection->get_header_message(), 'doc_url' => $inspection->get_help_doc_url(), 'error' => true, ]; break; } } return $debug_data; } }