[wp-trac] [WordPress Trac] #64516: In a test sequence, resources can still be updated after being deleted.

WordPress Trac noreply at wordpress.org
Fri Jan 16 03:07:25 UTC 2026


#64516: In a test sequence, resources can still be updated after being deleted.
--------------------------+-----------------------------
 Reporter:  nefelibata    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTTP API      |    Version:  6.9
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 DELETE /pages/{id} AT 2026-01-15T9:47:36
 [
   {
     "method": "DELETE",
     "endpoint": "/pages/{id}",
     "status": 200,
     "apiParameters": {
       "pathParameters": [
         {
           "name": "id",
           "value": "11",
           "type": "integer"
         }
       ],
       "queryParameters": [],
       "requestBodyParameters": []
     },
     "responseBody":
 "{\"id\":11,\"date\":\"2026-01-15T09:47:36\",\"date_gmt\":\"2026-01-15T09:47:36\",\"guid\":{\"rendered\":\"http:\\/\\/localhost\\/?page_id\u003d11\",\"raw\":\"http:\\/\\/localhost\\/?page_id\u003d11\"},\"modified\":\"2026-01-15T09:48:14\",\"modified_gmt\":\"2026-01-15T09:48:14\",\"password\":\"\",\"slug\":\"__trashed\",\"status\":\"trash\",\"type\":\"page\",\"link\":\"http:\\/\\/localhost\\/?page_id\u003d11\",\"title\":{\"raw\":\"394-195667\",\"rendered\":\"394-195667\"},\"content\":{\"raw\":\"\",\"rendered\":\"\",\"protected\":false,\"block_version\":0},\"excerpt\":{\"raw\":\"disgood
 \",\"rendered\":\"\u003cp\u003edisgood
 \u003c\\/p\u003e\\n\",\"protected\":false},\"author\":1,\"featured_media\":0,\"parent\":0,\"menu_order\":0,\"comment_status\":\"open\",\"ping_status\":\"closed\",\"template\":\"\",\"meta\":{\"footnotes\":\"\"},\"permalink_template\":\"http:\\/\\/localhost\\/%pagename%\\/\",\"generated_slug\":\"394-195667\",\"class_list\":[\"post-11\",\"page
 \",\"type-page\",\"status-
 trash\",\"hentry\"],\"_links\":{\"self\":[{\"href\":\"http:\\/\\/localhost
 \\/wp-
 json\\/wp\\/v2\\/pages\\/11\",\"targetHints\":{\"allow\":[\"GET\",\"POST\",\"PUT\",\"PATCH\",\"DELETE\"]}}],\"collection\":[{\"href\":\"http:\\/\\/localhost
 \\/wp-
 json\\/wp\\/v2\\/pages\"}],\"about\":[{\"href\":\"http:\\/\\/localhost
 \\/wp-
 json\\/wp\\/v2\\/types\\/page\"}],\"author\":[{\"embeddable\":true,\"href\":\"http:\\/\\/localhost
 \\/wp-
 json\\/wp\\/v2\\/users\\/1\"}],\"replies\":[{\"embeddable\":true,\"href\":\"http:\\/\\/localhost
 \\/wp-json\\/wp\\/v2\\/comments?post\u003d11\"}],\"version-
 history\":[{\"count\":2,\"href\":\"http:\\/\\/localhost\\/wp-
 json\\/wp\\/v2\\/pages\\/11\\/revisions\"}],\"predecessor-
 version\":[{\"id\":14,\"href\":\"http:\\/\\/localhost\\/wp-
 json\\/wp\\/v2\\/pages\\/11\\/revisions\\/14\"}],\"wp:attachment\":[{\"href\":\"http:\\/\\/localhost
 \\/wp-json\\/wp\\/v2\\/media?parent\u003d11\"}],\"wp:action-
 publish\":[{\"href\":\"http:\\/\\/localhost\\/wp-
 json\\/wp\\/v2\\/pages\\/11\"}],\"wp:action-unfiltered-
 html\":[{\"href\":\"http:\\/\\/localhost\\/wp-
 json\\/wp\\/v2\\/pages\\/11\"}],\"wp:action-assign-
 author\":[{\"href\":\"http:\\/\\/localhost\\/wp-
 json\\/wp\\/v2\\/pages\\/11\"}],\"curies\":[{\"name\":\"wp\",\"href\":\"https:\\/\\/api.w.org\\/{rel}\",\"templated\":true}]}}",
     "requestHeaders": "Accept: application/json\nAuthorization: ██\n",
     "requestBody": ""
   }
 ]
 POST /pages/{id} AT 2026-01-15T09:47:48
 [
   {
     "method": "POST",
     "endpoint": "/pages/{id}",
     "status": 200,
     "apiParameters": {
       "pathParameters": [
         {
           "name": "id",
           "value": "11",
           "type": "integer"
         }
       ],
       "queryParameters": [],
       "requestBodyParameters": [
         {
           "path": "excerpt",
           "name": "excerpt",
           "value": "",
           "type": "string"
         },
         {
           "path": "slug",
           "name": "slug",
           "value": "",
           "type": "string"
         },
         {
           "path": "featured_media",
           "name": "featured_media",
           "value": "",
           "type": "integer"
         },
         {
           "path": "comment_status",
           "name": "comment_status",
           "value": "",
           "type": "string"
         },
         {
           "path": "status",
           "name": "status",
           "value": "",
           "type": "string"
         },
         {
           "path": "ping_status",
           "name": "ping_status",
           "value": "",
           "type": "string"
         },
         {
           "path": "content",
           "name": "content",
           "value": "",
           "type": "string"
         },
         {
           "path": "password",
           "name": "password",
           "value": "",
           "type": "string"
         },
         {
           "path": "meta",
           "name": "meta",
           "value": "",
           "type": "string"
         },
         {
           "path": "date_gmt",
           "name": "date_gmt",
           "value": "",
           "type": "string"
         },
         {
           "path": "author",
           "name": "author",
           "value": "",
           "type": "integer"
         },
         {
           "path": "template",
           "name": "template",
           "value": "",
           "type": "string"
         },
         {
           "path": "parent",
           "name": "parent",
           "value": "",
           "type": "integer"
         },
         {
           "path": "date",
           "name": "date",
           "value": "",
           "type": "string"
         },
         {
           "path": "title",
           "name": "title",
           "value": "",
           "type": "string"
         }
       ]
     },
     "responseBody":
 "{\"id\":11,\"date\":\"2026-01-15T09:47:48\",\"date_gmt\":\"2026-01-15T09:47:48\",\"guid\":{\"rendered\":\"http:\\/\\/localhost\\/?page_id\u003d11\",\"raw\":\"http:\\/\\/localhost\\/?page_id\u003d11\"},\"modified\":\"2026-01-15T09:47:48\",\"modified_gmt\":\"2026-01-15T09:47:48\",\"password\":\"\",\"slug\":\"\",\"status\":\"draft\",\"type\":\"page\",\"link\":\"http:\\/\\/localhost\\/?page_id\u003d11\",\"title\":{\"raw\":\"394-195667\",\"rendered\":\"394-195667\"},\"content\":{\"raw\":\"\",\"rendered\":\"\",\"protected\":false,\"block_version\":0},\"excerpt\":{\"raw\":\"maxixe
 AFL CT\",\"rendered\":\"\u003cp\u003emaxixe AFL
 CT\u003c\\/p\u003e\\n\",\"protected\":false},\"author\":1,\"featured_media\":0,\"parent\":0,\"menu_order\":0,\"comment_status\":\"open\",\"ping_status\":\"closed\",\"template\":\"\",\"meta\":{\"footnotes\":\"\"},\"permalink_template\":\"http:\\/\\/localhost\\/%pagename%\\/\",\"generated_slug\":\"394-195667\",\"class_list\":[\"post-11\",\"page
 \",\"type-page\",\"status-
 draft\",\"hentry\"],\"_links\":{\"self\":[{\"href\":\"http:\\/\\/localhost
 \\/wp-
 json\\/wp\\/v2\\/pages\\/11\",\"targetHints\":{\"allow\":[\"GET\",\"POST\",\"PUT\",\"PATCH\",\"DELETE\"]}}],\"collection\":[{\"href\":\"http:\\/\\/localhost
 \\/wp-
 json\\/wp\\/v2\\/pages\"}],\"about\":[{\"href\":\"http:\\/\\/localhost
 \\/wp-
 json\\/wp\\/v2\\/types\\/page\"}],\"author\":[{\"embeddable\":true,\"href\":\"http:\\/\\/localhost
 \\/wp-
 json\\/wp\\/v2\\/users\\/1\"}],\"replies\":[{\"embeddable\":true,\"href\":\"http:\\/\\/localhost
 \\/wp-json\\/wp\\/v2\\/comments?post\u003d11\"}],\"version-
 history\":[{\"count\":1,\"href\":\"http:\\/\\/localhost\\/wp-
 json\\/wp\\/v2\\/pages\\/11\\/revisions\"}],\"predecessor-
 version\":[{\"id\":12,\"href\":\"http:\\/\\/localhost\\/wp-
 json\\/wp\\/v2\\/pages\\/11\\/revisions\\/12\"}],\"wp:attachment\":[{\"href\":\"http:\\/\\/localhost
 \\/wp-json\\/wp\\/v2\\/media?parent\u003d11\"}],\"wp:action-
 publish\":[{\"href\":\"http:\\/\\/localhost\\/wp-
 json\\/wp\\/v2\\/pages\\/11\"}],\"wp:action-unfiltered-
 html\":[{\"href\":\"http:\\/\\/localhost\\/wp-
 json\\/wp\\/v2\\/pages\\/11\"}],\"wp:action-assign-
 author\":[{\"href\":\"http:\\/\\/localhost\\/wp-
 json\\/wp\\/v2\\/pages\\/11\"}],\"curies\":[{\"name\":\"wp\",\"href\":\"https:\\/\\/api.w.org\\/{rel}\",\"templated\":true}]}}",
     "requestHeaders": "Accept: application/json\nAuthorization: ██\n",
     "requestBody": "{}"
   }
 ]
 POST /pages/{id}/autosaves AT 2026-01-15T09:48:20
 [
   {
     "method": "POST",
     "endpoint": "/pages/{id}/autosaves",
     "status": 200,
     "apiParameters": {
       "pathParameters": [
         {
           "name": "id",
           "value": "11",
           "type": "integer"
         }
       ],
       "queryParameters": [],
       "requestBodyParameters": [
         {
           "path": "meta",
           "name": "meta",
           "value": "",
           "type": "string"
         },
         {
           "path": "featured_media",
           "name": "featured_media",
           "value": "featured_media\u003d-2147483648",
           "type": "integer"
         },
         {
           "path": "excerpt",
           "name": "excerpt",
           "value": "excerpt\u003d483-07-150",
           "type": "string"
         },
         {
           "path": "ping_status",
           "name": "ping_status",
           "value": "",
           "type": "string"
         },
         {
           "path": "template",
           "name": "template",
           "value": "",
           "type": "string"
         },
         {
           "path": "date_gmt",
           "name": "date_gmt",
           "value": "",
           "type": "string"
         },
         {
           "path": "author",
           "name": "author",
           "value": "",
           "type": "integer"
         },
         {
           "path": "password",
           "name": "password",
           "value": "",
           "type": "string"
         },
         {
           "path": "content",
           "name": "content",
           "value": "",
           "type": "string"
         },
         {
           "path": "parent",
           "name": "parent",
           "value": "parent\u003d117",
           "type": "integer"
         },
         {
           "path": "title",
           "name": "title",
           "value": "",
           "type": "string"
         },
         {
           "path": "comment_status",
           "name": "comment_status",
           "value": "comment_status\u003dclosed",
           "type": "string"
         },
         {
           "path": "status",
           "name": "status",
           "value": "",
           "type": "string"
         },
         {
           "path": "menu_order",
           "name": "menu_order",
           "value": "",
           "type": "string"
         },
         {
           "path": "date",
           "name": "date",
           "value": "",
           "type": "string"
         },
         {
           "path": "slug",
           "name": "slug",
           "value": "slug\u003ddehumidify-nv-gc",
           "type": "string"
         }
       ]
     },
     "responseBody":
 "{\"author\":1,\"date\":\"2026-01-15T09:48:20\",\"date_gmt\":\"2026-01-15T09:48:20\",\"id\":15,\"modified\":\"2026-01-15T09:48:20\",\"modified_gmt\":\"2026-01-15T09:48:20\",\"parent\":11,\"slug\":\"11-autosave-v1\",\"guid\":{\"rendered\":\"http:\\/\\/localhost\\/?p\u003d15\",\"raw\":\"http:\\/\\/localhost\\/?p\u003d15\"},\"title\":{\"raw\":\"\",\"rendered\":\"\"},\"content\":{\"raw\":\"\",\"rendered\":\"\"},\"excerpt\":{\"raw\":\"\",\"rendered\":\"\"},\"meta\":{\"footnotes\":\"\"},\"preview_link\":\"http:\\/\\/localhost\\/?page_id\u003d11\u0026preview_id\u003d11\u0026preview_nonce\u003db5944fb7a1\u0026preview\u003dtrue\",\"_links\":{\"parent\":[{\"href\":\"http:\\/\\/localhost
 \\/wp-json\\/wp\\/v2\\/pages\\/11\"}]}}",
     "requestHeaders": "Accept: application/json\nAuthorization: ██\n",
     "requestBody": "{\"slug\": \"dehumidify-nv-gc\", \"parent\": 117,
 \"excerpt\": \"483-07-150\", \"featured_media\": -2147483648,
 \"comment_status\": \"closed\"}"
   }
 ]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64516>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list