[wp-trac] [WordPress Trac] #54448: Missing rest api endpoint when exporting templates and template parts

WordPress Trac noreply at wordpress.org
Tue Dec 7 18:36:44 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  |     Focuses:  rest-api
--------------------------------------+--------------------------------
Changes (by spacedmonkey):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52340" 52340]:
 {{{
 #!CommitTicketReference repository="" revision="52340"
 REST API: Ensure that the export template endpoint returns a valid
 WP_Error object.

 Ensure that the export template endpoint returns a WP_Error object,
 including code and message, so that the site editor can display an error
 message.
 Add some basic unit tests to ensure that permission checks are working as
 expected.

 Follow-up to [52286].

 Props Spacedmonkey, dlh, hellofromTonya , Mamaduka, TimothyBlynJacobs.
 Fixes #54448.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54448#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list