[wp-trac] [WordPress Trac] #43699: if i remove image from a post > wp-json return it again as a media
WordPress Trac
noreply at wordpress.org
Sun Apr 8 17:20:14 UTC 2018
#43699: if i remove image from a post > wp-json return it again as a media
-------------------------------+------------------------------
Reporter: adalenv | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.9.4
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: rest-api
-------------------------------+------------------------------
Changes (by soulseekah):
* keywords: => reporter-feedback
* severity: major => normal
Comment:
Welcome to Trac, @adalenv! :)
I was unable to reproduce this on a fresh installation of WordPress.
Steps I took:
1. Create a post.
2. Insert an image (upload).
3. Request `/wp-json/wp/v2/media\?parent=2225`. Result: see the uploaded
media.
4. Go to Dashboard / Media and delete the uploaded image.
5. Request `/wp-json/wp/v2/media\?parent=2225`. Result: [] empty array
Do you perhaps have page caching plugins? Persistent object caching?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43699#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list