function _load_data() { if ($this->had_error()) { return false; } if (!empty($this->_file_path)) { return true; } $path = get_transient("builder-imex-path-{$this->_guid}"); if (false !== $path && is_dir($path)) { $this->_file_path = $path; return true; } $file = BuilderImportExport::_get_export_path($this->_guid); if (is_wp_error($file)) { $this->add_error($file); return false; } it_classes_load('it-file-utility.php'); it_classes_load('it-zip.php'); $path = ITFileUtility::create_writable_directory(array('name' => 'deleteme-builder-import-export-cache-temp', 'random' => true)); if (is_wp_error($path)) { return $path; } $result = ITZip::unzip($file, $path); if (is_wp_error($result)) { $this->add_error($results); return false; } $this->_file_path = $path; set_transient("builder-imex-path-{$this->_guid}", $path, 600); wp_schedule_single_event(time() + 660, 'builder_import_export_cleanup', array($this->_guid, $path)); return true; }