[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor
/
modules
/
usage
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 calculators
SET
[ DEL ]
📁 contracts
SET
[ DEL ]
📄 element-usage-calculator-registry.php
884 B
SET
[ EDIT ]
|
[ DEL ]
📄 module.php
16,104 B
SET
[ EDIT ]
|
[ DEL ]
📄 settings-reporter.php
1,262 B
SET
[ EDIT ]
|
[ DEL ]
📄 usage-reporter.php
3,081 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: element-usage-calculator-registry.php
<?php namespace Elementor\Modules\Usage; use Elementor\Modules\Usage\Contracts\Element_Usage_Calculator; if ( ! defined( 'ABSPATH' ) ) { exit; } class Element_Usage_Calculator_Registry { /** @var Element_Usage_Calculator[] */ private array $calculators = []; private ?Element_Usage_Calculator $fallback = null; /** * @param Element_Usage_Calculator[] $calculators */ public function __construct( array $calculators = [] ) { $this->calculators = $calculators; } public function set_fallback( Element_Usage_Calculator $calculator ): void { $this->fallback = $calculator; } public function get_calculator_for( array $element, $element_instance ): ?Element_Usage_Calculator { foreach ( $this->calculators as $calculator ) { if ( $calculator->can_calculate( $element, $element_instance ) ) { return $calculator; } } return $this->fallback; } }