[wp-trac] [WordPress Trac] #54448: Missing rest api endpoint when exporting templates and template parts
WordPress Trac
noreply at wordpress.org
Tue Nov 30 17:30:37 UTC 2021
#54448: Missing rest api endpoint when exporting templates and template parts
---------------------------------------------+-----------------------------
Reporter: walbo | Owner:
| TimothyBlynJacobs
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.9
Component: Editor | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: rest-api
---------------------------------------------+-----------------------------
Changes (by spacedmonkey):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"52286" 52286]:
{{{
#!CommitTicketReference repository="" revision="52286"
Site Editor: Add site export REST API endpoint.
Add a REST API to export site templates and template part as html files.
When the REST API is requested, it responds by downloading a single ZIP
file and exits early, without completing full request. To create the
exported zip, the ZipArchive class is required. If this class is not
present then the export will gracefully fail, returning a `WP_Error`
object and 500 status error code.
Props spacedmonkey, youknowriad, Mamaduka, walbo, peterwilsoncc.
Fixes #54448 .
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54448#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list