PluginProbe
Elementor Website Builder – more than just a page builder / 3.20.2
Elementor Website Builder – more than just a page builder v3.20.2
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 | app/modules/import-export/processes/export.php +5 -7 4.1.43.20.2 View file →
@@ -153,10 +153,10 @@
153 153 $this->settings_selected_plugins( $this->get_default_settings_selected_plugins() );
154 154 }
155 155 }
156 156
157 - public function settings_include( $included_settings ) {
158 - $this->settings_include = $included_settings;
157 + public function settings_include( $include ) {
158 + $this->settings_include = $include;
159 159 }
160 160
161 161 public function get_settings_include() {
162 162 return $this->settings_include;
@@ -236,14 +236,12 @@
236 236 }
237 237
238 238 /**
239 239 * Init the zip archive.
240 - *
241 - * @throws \Error If export process fails, file creation errors occur, or data serialization fails.
242 240 */
243 241 private function init_zip_archive() {
244 242 if ( ! class_exists( '\ZipArchive' ) ) {
245 - throw new \Error( static::ZIP_ARCHIVE_MODULE_MISSING ); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
243 + throw new \Error( static::ZIP_ARCHIVE_MODULE_MISSING );
246 244 }
247 245
248 246 $zip = new \ZipArchive();
249 247
@@ -312,10 +310,10 @@
312 310 /**
313 311 * Add json file to the zip archive.
314 312 *
315 313 * @param string $path The relative path to the file.
316 - * @param array $content The content of the file.
317 - * @param int $json_flags
314 + * @param array $content The content of the file.
315 + * @param int $json_flags
318 316 */
319 317 private function add_json_file( $path, array $content, $json_flags = 0 ) {
320 318 if ( ! Str::ends_with( $path, '.json' ) ) {
321 319 $path .= '.json';