| Server IP : 87.229.120.60 / Your IP : 216.73.216.245 Web Server : Apache System : Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64 User : server ( 1002) PHP Version : 8.3.20 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/faktorteam/www/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;
}
}