PluginProbe
Elementor Website Builder – more than just a page builder / 3.29.0-beta4
Elementor Website Builder – more than just a page builder v3.29.0-beta4
4.3.2 4.3.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 All 455 releases
← All changes | includes/base/element-base.php +2 -7 4.0.9 → 3.29.0-beta4 View file →
@@ -150,10 +150,8 @@
150 150 wp_enqueue_script( $script );
151 151 }
152 152 }
153 153
154 - public function register_frontend_handlers() {}
155 -
156 154 /**
157 155 * Get style dependencies.
158 156 *
159 157 * Retrieve the list of style dependencies the element requires.
@@ -453,11 +451,9 @@
453 451 public function print_element() {
454 452 $element_type = $this->get_type();
455 453
456 454 if ( $this->should_render_shortcode() ) {
457 - $unique_id = apply_filters( 'elementor/element_cache/unique_id', '' );
458 -
459 - echo '[elementor-element k="' . esc_attr( $unique_id ) . '" data="' . esc_attr( base64_encode( wp_json_encode( $this->get_raw_data() ) ) ) . '"]';
455 + echo '[elementor-element data="' . esc_attr( base64_encode( wp_json_encode( $this->get_raw_data() ) ) ) . '"]';
460 456 return;
461 457 }
462 458
463 459 /**
@@ -769,9 +765,8 @@
769 765 'elementor-element-' . $id,
770 766 ],
771 767 'data-id' => $id,
772 768 'data-element_type' => $this->get_type(),
773 - 'data-e-type' => $this->get_type(),
774 769 ] );
775 770
776 771 $class_settings = [];
777 772
@@ -1582,9 +1577,9 @@
1582 1577 *
1583 1578 * @param array $data Optional. Element data. Default is an empty array.
1584 1579 * @param array|null $args Optional. Element default arguments. Default is null.
1585 1580 **/
1586 - public function __construct( array $data = [], ?array $args = null ) {
1581 + public function __construct( array $data = [], array $args = null ) {
1587 1582 if ( $data ) {
1588 1583 $this->is_type_instance = false;
1589 1584 } elseif ( $args ) {
1590 1585 $this->default_args = $args;