| @@ -608,12 +608,8 @@ | ||
| 608 | 608 | |
| 609 | 609 | if ( $autosave_id ) { |
| 610 | 610 | $document = Plugin::$instance->documents->get( $autosave_id ); |
| 611 | 611 | } elseif ( $create ) { |
| 612 | - if ( ! function_exists( 'wp_create_post_autosave' ) ) { | |
| 613 | - require_once ABSPATH . 'wp-admin/includes/post.php'; | |
| 614 | - } | |
| 615 | - | |
| 616 | 612 | $autosave_id = wp_create_post_autosave( [ |
| 617 | 613 | 'post_ID' => $this->post->ID, |
| 618 | 614 | 'post_type' => $this->post->post_type, |
| 619 | 615 | 'post_title' => $this->post->post_title, |
| @@ -2107,10 +2103,6 @@ | ||
| 2107 | 2103 | $this->elements_iteration_actions[] = new Assets_Iteration_Action( $this ); |
| 2108 | 2104 | } |
| 2109 | 2105 | |
| 2110 | 2106 | return $this->elements_iteration_actions; |
| 2111 | - } | |
| 2112 | - | |
| 2113 | - public function get_elementor_version() { | |
| 2114 | - return $this->get_main_meta( '_elementor_version' ); | |
| 2115 | 2107 | } |
| 2116 | 2108 | } |