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

WordPress Trac noreply at wordpress.org
Wed Jan 27 22:38:44 UTC 2021


#52196: wp_get_attachment_metadata() is broken if no first argument is passed in.
--------------------------+-----------------------------
 Reporter:  cfinke        |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  5.6.1
Component:  Media         |     Version:  5.6
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by Mista-Flo):

 Hi, thanks for your help guys.

 I am not sure the last doc update is not confusing.

 Because if not attachment_id is passed, it equals to 0 yes, but then it
 fallbacks to global post with the modified patch, so it should stay like
 this IMO.

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


More information about the wp-trac mailing list