[wp-trac] [WordPress Trac] #59875: Revisions controller: get_item can return a revision whose parent does not match the `parent` route fragment

WordPress Trac noreply at wordpress.org
Mon Nov 20 19:27:57 UTC 2023


#59875: Revisions controller: get_item can return a revision whose parent does not
match the `parent` route fragment
---------------------------------------------+-----------------------------
 Reporter:  ramonopoly                       |       Owner:
                                             |  adamsilverstein
     Type:  defect (bug)                     |      Status:  assigned
 Priority:  normal                           |   Milestone:  6.5
Component:  REST API                         |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-unit-tests has-patch commit  |     Focuses:  rest-api
---------------------------------------------+-----------------------------
Changes (by adamsilverstein):

 * keywords:  has-unit-tests has-patch => has-unit-tests has-patch commit
 * milestone:  Awaiting Review => 6.5


Comment:

 Nice work @ramonopoly - the PR looks good to me, and I verified the tests
 fail (and the parent post is returned) when running the new test without
 the fix. Milestoning this for 6.5.

 As far as I can tell this bug has existed since the revisions endpoint was
 introduced, does that seem right @danielbachhuber?

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


More information about the wp-trac mailing list