PluginProbe
Elementor Website Builder – more than just a page builder / 3.34.3
Elementor Website Builder – more than just a page builder v3.34.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 | core/base/document.php +1 -23 4.1.13.34.3 View file →
@@ -19,8 +19,9 @@
19 19 use Elementor\Widget_Base;
20 20 use Elementor\Core\Settings\Page\Manager as PageManager;
21 21 use ElementorPro\Modules\Library\Widgets\Template;
22 22 use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager;
23 +use Elementor\Modules\AtomicWidgets\Module as Atomic_Widgets_Module;
23 24
24 25 if ( ! defined( 'ABSPATH' ) ) {
25 26 exit; // Exit if accessed directly.
26 27 }
@@ -608,12 +609,8 @@
608 609
609 610 if ( $autosave_id ) {
610 611 $document = Plugin::$instance->documents->get( $autosave_id );
611 612 } elseif ( $create ) {
612 - if ( ! function_exists( 'wp_create_post_autosave' ) ) {
613 - require_once ABSPATH . 'wp-admin/includes/post.php';
614 - }
615 -
616 613 $autosave_id = wp_create_post_autosave( [
617 614 'post_ID' => $this->post->ID,
618 615 'post_type' => $this->post->post_type,
619 616 'post_title' => $this->post->post_title,
@@ -1064,23 +1061,8 @@
1064 1061 if ( is_null( $data ) ) {
1065 1062 $data = $this->get_elements_data();
1066 1063 }
1067 1064
1068 - /**
1069 - * Filters document elements data after loading.
1070 - *
1071 - * Allows modification of elements data when loading (not saving).
1072 - * Useful for migrations, transformations, or data enrichment.
1073 - *
1074 - * @since 3.35.0
1075 - *
1076 - * @param array $data The elements data array.
1077 - * @param \Elementor\Core\Base\Document $document The document instance.
1078 - */
1079 - if ( ! $this->is_saving ) {
1080 - $data = apply_filters( 'elementor/document/load/data', $data, $this );
1081 - }
1082 -
1083 1065 // Change the current documents, so widgets can use `documents->get_current` and other post data
1084 1066 Plugin::$instance->documents->switch_to_document( $this );
1085 1067
1086 1068 $editor_data = [];
@@ -2107,10 +2089,6 @@
2107 2089 $this->elements_iteration_actions[] = new Assets_Iteration_Action( $this );
2108 2090 }
2109 2091
2110 2092 return $this->elements_iteration_actions;
2111 - }
2112 -
2113 - public function get_elementor_version() {
2114 - return $this->get_main_meta( '_elementor_version' );
2115 2093 }
2116 2094 }