[wp-trac] [WordPress Trac] #45269: REST API: `rest_insert_attachment` and `rest_after_insert_attachment` actions fire twice on update.
WordPress Trac
noreply at wordpress.org
Sun Dec 16 18:54:04 UTC 2018
#45269: REST API: `rest_insert_attachment` and `rest_after_insert_attachment`
actions fire twice on update.
--------------------------------------+------------------------------
Reporter: peterwilsoncc | Owner: danielbachhuber
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.0
Component: REST API | Version: 5.0
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+------------------------------
Comment (by jeremyfelt):
In [changeset:"44234" 44234]:
{{{
#!CommitTicketReference repository="" revision="44234"
Tests: Replace uses of `$this->server` with `rest_get_server()`.
In [42724], `$this->server` was replaced with `rest_get_server()` for
better memory recycling.
[43862], from the 5.0 branch, was merged into trunk in [44225] and used
the now unavailable `$this->server`.
This updates the new tests from the 5.0 branch to use the expected
`rest_get_server()`.
See #45269, #41641.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45269#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list