[wp-trac] [WordPress Trac] #51133: Image uploaded through third party plugin showing in media but not showing up in post

WordPress Trac noreply at wordpress.org
Tue Aug 25 07:46:26 UTC 2020


#51133: Image uploaded through third party plugin showing in media but not showing
up in post
--------------------------+-----------------------------
 Reporter:  ujw0l         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.5
 Severity:  critical      |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 I created a plugin which uploads Image to upload folder. It sends blob
 through ajax and uses wp_insert_attachment insert as attachment,
 wp_generate_attachment_metadata to generate meta data and uses
 wp_update_attachment_metadata to update meta data of attachment. And it
 shows up in media without file name and when I pragmatically insert
 attachment to the post using wp_get_attachment_image , it only display's
 attachment's name not image file.

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


More information about the wp-trac mailing list