PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.5.3
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.5.3
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/API/Import.php +5 -7 3.6.63.5.3 View file →
@@ -158,13 +158,11 @@
158 158 return $template_data;
159 159 }
160 160
161 161 public function import_in_library(){
162 - $platform = $this->get_param( 'platform', 'elementor' );
163 - $id = $this->get_param( 'id', 0, 'intval' );
164 - $settings = $this->get_param( 'settings', [], null );
165 - $template_type = $this->get_param( 'template_type', '', 'sanitize_text_field' );
166 - $type = $this->get_param( 'type', '', 'sanitize_text_field' );
162 + $platform = $this->get_param( 'platform', 'elementor' );
163 + $id = $this->get_param( 'id', 0, 'intval' );
164 + $settings = $this->get_param( 'settings', [], null );
167 165
168 166 if( $id == 0 ) {
169 167 return $this->error('invalid_item_id', __( 'Invalid ID is provided.', 'templately' ), 'import/page', 404 );
170 168 }
@@ -180,9 +178,9 @@
180 178
181 179 @set_time_limit( 0 ); // Unlimited execution time for this request.
182 180 Utils::add_gd_editor_filter();
183 181
184 - return $this->platform( $platform )->import_in_library( $id, $this, $settings, $template_type, $type );
182 + return $this->platform( $platform )->import_in_library( $id, $this, $settings );
185 183 }
186 184
187 185 public function import_as_page(){
188 186 $platform = $this->get_param( 'platform', 'elementor' );
@@ -187,9 +185,9 @@
187 185 public function import_as_page(){
188 186 $platform = $this->get_param( 'platform', 'elementor' );
189 187 $id = $this->get_param( 'id', 0, 'intval' );
190 188 $title = $this->get_param( 'title' );
191 - $settings = $this->get_param( 'settings', [], null );
189 + $settings = $this->get_param( 'settings', [] );
192 190
193 191 if( $id == 0 ) {
194 192 return $this->error('invalid_item_id', __( 'Invalid ID is provided.', 'templately' ), 'import/page', 404 );
195 193 }