| Server IP : 186.64.123.29 / Your IP : 216.73.217.94 Web Server : LiteSpeed System : Linux house.hostinglat.cl 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : tuemp9827 ( 1016) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/tuempresavirtual.cl/public_html/wp-content/plugins/elementor/modules/dev-tools/ |
Upload File : |
<?php
namespace Elementor\Modules\DevTools;
use Elementor\Core\Base\Module as BaseModule;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Fix issue with 'Potentially polymorphic call. The code may be inoperable depending on the actual class instance passed as the argument.'.
* Its tells to the editor that instance() return right module. instead of base module.
* @method Module instance()
*/
class Module extends BaseModule {
/**
* @var Deprecation
*/
public $deprecation;
public function __construct() {
$this->deprecation = new Deprecation( ELEMENTOR_VERSION );
add_filter( 'elementor/editor/localize_settings', [ $this, 'localize_settings' ] );
}
public function get_name() {
return 'dev-tools';
}
public function localize_settings( $settings ) {
$settings = array_replace_recursive( $settings, [
'dev_tools' => [
'deprecation' => $this->deprecation->get_settings(),
],
] );
return $settings;
}
}