[wp-trac] [WordPress Trac] #37255: Update attachment functions to accept a post object in addition to ID

WordPress Trac noreply at wordpress.org
Thu Jul 2 01:52:34 UTC 2020


#37255: Update attachment functions to accept a post object in addition to ID
-------------------------------------+------------------------
 Reporter:  wido                     |       Owner:  joemcgill
     Type:  enhancement              |      Status:  reviewing
 Priority:  normal                   |   Milestone:  5.5
Component:  Media                    |     Version:  4.6
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------
Changes (by Howdy_McGee):

 * keywords:  has-patch needs-testing needs-refresh => has-patch needs-
               testing


Comment:

 Patch refresh, keeps current updates and fixes
 `wp_get_attachment_metadata()`, `wp_update_attachment_metadata()` and
 `wp_get_attachment_url()`. Additionally, while creating this patch I'm not
 sure the `wp_get_attachment_thumb_file()` function has worked properly for
 awhile.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/37255#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list