=== Whole Site Export by LaserLloyd ===
Contributors: laserlloyd
Tags: export, backup, migration, static site, zip
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

One click under Tools downloads one zip: full export file, uploads, every page as rendered HTML, and settings.

== Description ==

Whole Site Export builds a single zip file from the Tools screen. It works in small batches, so it also runs on slow shared hosting with short time limits and low memory.

The zip contains:

* `wordpress-export.xml`: WordPress's own "All content" export.
* `uploads/`: your whole uploads folder, paths unchanged. Photos, video and other already-compressed files are stored as they are, not recompressed.
* `rendered/`: every published post, page and custom entry as HTML with shortcodes, blocks and galleries expanded, plus `rendered/index.json`.
* `settings.json`: title, tagline, address, language, menus, custom CSS, front page settings, site icon and logo.
* `manifest.json`: what is inside, counts, and the files that had to be skipped, with the reason (the first 200, then a count).

Two options are off by default: the themes and plugins folders, and a plain SQL database dump. The database dump contains user accounts, email addresses and password hashes; the screen warns you before you tick it.

Safety: only administrators can use it, every action is checked with a nonce, it only reads your content, and the plugin itself makes no outside network calls (outside requests are blocked while pages are rendered). It leaves out `wp-config.php` and files that look like copies of it, key files, database dumps found among your files, the folders of common backup, cache and form-upload plugins, and logs, and lists them in `manifest.json`. These rules go by name: a plain archive left in your uploads folder is copied like any other file. The temporary work folder has a random name and is kept in PHP's temporary folder, outside the website, whenever that folder is usable. Otherwise it is made inside the uploads folder, and the export only goes on after your browser has confirmed that the folder cannot be read from the web; if it can be read, the export is refused. The zip is served only through a signed-in download and is deleted after the download and by a daily clean-up. Uninstalling from the dashboard removes everything the plugin created.

Keep the zip private. `wordpress-export.xml` is the same file WordPress makes under Tools, Export: it also holds drafts, private and password-protected entries with their passwords, and the email addresses of authors and commenters. The uploads folder is copied as it is, apart from what `manifest.json` lists as skipped.

== Installation ==

1. In your dashboard open Plugins, Add New, Upload Plugin.
2. Choose the zip, click Install Now, then Activate.
3. Open Tools, Whole Site Export.
4. Click Export everything, wait for 100%, then click Download the zip.

== Frequently Asked Questions ==

= Does it change my site? =
No. It only reads content. It writes one temporary folder (in PHP's temporary folder, or inside the uploads folder when that is not usable) and removes it afterwards.

= What if my host stops the export halfway? =
Reload the screen and click Resume. The work is done in short steps and picks up where it stopped. An entry whose shortcode crashes PHP is left out and listed in `manifest.json`.

= Does it work on multisite? =
It is not tested on multisite. There it is limited to super administrators.

== Changelog ==

= 1.0.0 =
* First release.
