[wp-trac] [WordPress Trac] #47782: REST API Media returning blank

WordPress Trac noreply at wordpress.org
Fri Jul 26 15:56:49 UTC 2019


#47782: REST API Media returning blank
----------------------------------+-----------------------------
 Reporter:  CHEWX                 |      Owner:  (none)
     Type:  defect (bug)          |     Status:  new
 Priority:  normal                |  Milestone:  Awaiting Review
Component:  REST API              |    Version:  5.2.2
 Severity:  blocker               |   Keywords:
  Focuses:  javascript, rest-api  |
----------------------------------+-----------------------------
 Hi,

 Just noticed an issue where an image returns empty.

 If you go to a post, upload an image. Then delete that post.

 The image will still be in the media lib which is correct.

 If you then https://wordpress.com/wp-json/wp/v2/media?include=123 it will
 return empty.

 If you restore post that was deleted the image will return.

 I would expect the image to return regardless of the post it was uploaded
 to as if the post was deleted, that image may be re-added within another
 post, as you wouldn't re-upload as it's already in the media lib.

 Thanks,
 Tom

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


More information about the wp-trac mailing list