PluginProbe
Elementor Website Builder – more than just a page builder / 3.29.1
Elementor Website Builder – more than just a page builder v3.29.1
4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 All 453 releases
← All changes | modules/variables/classes/style-transformers.php +4 -8 4.1.23.29.1 View file →
@@ -2,11 +2,10 @@
2 2
3 3 namespace Elementor\Modules\Variables\Classes;
4 4
5 5 use Elementor\Modules\AtomicWidgets\PropsResolver\Transformers_Registry;
6 -use Elementor\Modules\Variables\PropTypes\Color_Variable_Prop_Type;
7 -use Elementor\Modules\Variables\PropTypes\Font_Variable_Prop_Type;
8 -use Elementor\Modules\Variables\Transformers\Global_Variable_Transformer;
6 +use Elementor\Modules\Variables\PropTypes\Color_Variable as Color_Variable_Prop_Type;
7 +use Elementor\Modules\Variables\Transformers\Global_Variable as Global_Variable_Transformer;
9 8
10 9 if ( ! defined( 'ABSPATH' ) ) {
11 10 exit; // Exit if accessed directly.
12 11 }
@@ -11,13 +10,10 @@
11 10 exit; // Exit if accessed directly.
12 11 }
13 12
14 13 class Style_Transformers {
15 - public function append_to( Transformers_Registry $transformers_registry ): self {
16 - $transformer = new Global_Variable_Transformer();
17 -
18 - $transformers_registry->register( Color_Variable_Prop_Type::get_key(), $transformer );
19 - $transformers_registry->register( Font_Variable_Prop_Type::get_key(), $transformer );
14 + public function append_to( Transformers_Registry $transformers_registry ) {
15 + $transformers_registry->register( Color_Variable_Prop_Type::get_key(), new Global_Variable_Transformer() );
20 16
21 17 return $this;
22 18 }
23 19 }