| @@ -12,8 +12,9 @@ | ||
| 12 | 12 | * row/column, height/width and the option to link them together. |
| 13 | 13 | * |
| 14 | 14 | * @since 3.13.0 |
| 15 | 15 | */ |
| 16 | + | |
| 16 | 17 | class Control_Gaps extends Control_Dimensions { |
| 17 | 18 | /** |
| 18 | 19 | * Get gap control type. |
| 19 | 20 | * |
| @@ -56,22 +57,6 @@ | ||
| 56 | 57 | return [ |
| 57 | 58 | 'column' => esc_html__( 'Column', 'elementor' ), |
| 58 | 59 | 'row' => esc_html__( 'Row', 'elementor' ), |
| 59 | 60 | ]; |
| 60 | - } | |
| 61 | - | |
| 62 | - public function get_value( $control, $settings ) { | |
| 63 | - $value = parent::get_value( $control, $settings ); | |
| 64 | - | |
| 65 | - // BC for any old Slider control values. | |
| 66 | - if ( $this->should_update_gaps_values( $value ) ) { | |
| 67 | - $value['column'] = strval( $value['size'] ); | |
| 68 | - $value['row'] = strval( $value['size'] ); | |
| 69 | - } | |
| 70 | - | |
| 71 | - return $value; | |
| 72 | - } | |
| 73 | - | |
| 74 | - private function should_update_gaps_values( $value ) { | |
| 75 | - return isset( $value['size'] ) && '' !== $value['size'] && '' === $value['column']; | |
| 76 | 61 | } |
| 77 | 62 | } |