Rewriting links and assets URLs. This will need to land soon after the format, but is not strictly required for the format itself. The URLs would be stream-rewritten on export from the stored site URL to https://wordpress.internal URL using the rewriting flow we'll need for markdown importing. The importer would stream-rewrite them before inserting each post into the database.
Support for non-standard wp-content path
Support for exporting env variables or server-provided constants
Partial export ("I want just these three plugins")
Let's standardize the site export format used by Playground to:
With #1398, no platform-level files live in the WordPress site directory – this makes Playground so much more portable.
Technical implementation
I propose the following format:
wp-admin
,wp-content
,wp-includes
, other WordPress fileswp-config.php
is shipped and contains all the data it did contain in Playground.php
files are unminified, even if Playground was booted from a minified build.wp-content/themes
.wp-content
, two non-standard artifacts are shipped:.sql
files containing the full database dump (to stream-write, e.g. up to 500KB in each)db.php
are not shippedThis would enable:
Related work
Let's reuse as much of the work already done as possible:
Outside of scope
https://wordpress.internal
URL using the rewriting flow we'll need for markdown importing. The importer would stream-rewrite them before inserting each post into the database.