[wp-trac] [WordPress Trac] #52196: wp_get_attachment_metadata() is broken if no first argument is passed in.

WordPress Trac noreply at wordpress.org
Thu Dec 31 00:27:51 UTC 2020


#52196: wp_get_attachment_metadata() is broken if no first argument is passed in.
--------------------------+------------------------------
 Reporter:  cfinke        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  5.6
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by cfinke):

 * Attachment "52196.diff" added.

 If no attachment ID is supplied, try to use the global $post's ID.

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


More information about the wp-trac mailing list