PluginProbe
Elementor Website Builder – more than just a page builder / 3.2.3
Elementor Website Builder – more than just a page builder v3.2.3
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 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/controls/base-data.php +2 -26 4.2.23.2.3 View file →
@@ -14,18 +14,8 @@
14 14 * @abstract
15 15 */
16 16 abstract class Base_Data_Control extends Base_Control {
17 17
18 - public function __construct() {
19 - parent::__construct();
20 -
21 - $default_value = $this->get_default_value();
22 -
23 - if ( '' !== $default_value ) {
24 - $this->set_settings( 'default_value', $default_value );
25 - }
26 - }
27 -
28 18 /**
29 19 * Get data control default value.
30 20 *
31 21 * Retrieve the default value of the data control. Used to return the default
@@ -47,10 +37,10 @@
47 37 *
48 38 * @since 1.5.0
49 39 * @access public
50 40 *
51 - * @param array $control Control.
52 - * @param array $settings Element settings.
41 + * @param array $control Control
42 + * @param array $settings Element settings
53 43 *
54 44 * @return mixed Control values.
55 45 */
56 46 public function get_value( $control, $settings ) {
@@ -129,20 +119,6 @@
129 119 * @return string Unique ID.
130 120 */
131 121 protected function get_control_uid( $input_type = 'default' ) {
132 122 return 'elementor-control-' . $input_type . '-{{{ data._cid }}}';
133 - }
134 -
135 - /**
136 - * Safe Print data control unique ID.
137 - *
138 - * Retrieve the unique ID of the control. Used to set a unique CSS ID for the
139 - * element.
140 - *
141 - * @access protected
142 - *
143 - * @param string $input_type Input type. Default is 'default'.
144 - */
145 - protected function print_control_uid( $input_type = 'default' ) {
146 - echo esc_attr( $this->get_control_uid( $input_type ) );
147 123 }
148 124 }