[wp-trac] [WordPress Trac] #40399: Post Status Inherited not Supported with REST API

WordPress Trac noreply at wordpress.org
Sat Oct 24 16:02:49 UTC 2020


#40399: Post Status Inherited not Supported with REST API
--------------------------------------+--------------------------------
 Reporter:  dfenton                   |       Owner:  TimothyBlynJacobs
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.6
Component:  REST API                  |     Version:  4.7.3
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------------
Changes (by TimothyBlynJacobs):

 * owner:  (none) => TimothyBlynJacobs
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49302" 49302]:
 {{{
 #!CommitTicketReference repository="" revision="49302"
 REST API: Don't validate status if it hasn't changed.

 In particular, this allows for sending `status=inherit` to an attachment
 if it's current status is `inherit`. This status would be rejected because
 it is an "internal" post status which isn't exposed.

 As a general rule, a developer should always be able to PUT back a GET
 response without error.

 Props dfenton, pputzer, TimothyBlynJacobs.
 Fixes #40399.
 }}}

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


More information about the wp-trac mailing list