[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 23:19:16 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 audrasjb):

 I refreshed the patch and I ran a quick manual test:

 {{{
 // Used outside the loop.
 $data = wp_get_attachment_metadata();
 var_export( $data );

 // Returns false
 }}}

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


More information about the wp-trac mailing list