[wp-trac] [WordPress Trac] #53159: Media aren't attached if uploaded from libray and are attached if uploaded from post

WordPress Trac noreply at wordpress.org
Wed May 5 09:17:41 UTC 2021


#53159: Media aren't attached if uploaded from libray and are attached if uploaded
from post
--------------------------+-----------------------------
 Reporter:  ellimstom     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.7.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 It seems that medias keep unattached if they are uploaded from library
 before adding them to post or custom_post. If they are uploaded from post
 or custom_post, it's working fine.

 Here are the reprocedures:
 A. Working one: Upload from post:
  - 1. create a post
  - 2. click to add featured image
  - 3. upload an image and attach
  - 4. Publish post
  - 5. Go to library and filter unattached
  - Result: the uploaded image don't show up
 B. Issued one: Upload first:
  - 1. go to library and upload an image
  - 2. create a post
  - 3. click to add featured image
  - 4. Publish post
  - 5. Go to library and filter unattached
  - Result: the uploaded image shows up
 The same behaviour has been found while attaching images to Woocommerce
 products with CSV import. It's been tested with Automattic support and
 they have the same issue on their side.

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


More information about the wp-trac mailing list