[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 Jan 28 10:42:08 UTC 2021


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

Comment (by SergeyBiryukov):

 In [changeset:"50052" 50052]:
 {{{
 #!CommitTicketReference repository="" revision="50052"
 Docs: Revert documentation change for `wp_get_attachment_metadata()`.

 This more accurately describes the behavior of the function, and is more
 consistent with the documentation for other post and attachment functions.

 Follow-up to [50039].

 Props Mista-Flo.
 Merges [50051] to the 5.6 branch.
 See #52196.
 }}}

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


More information about the wp-trac mailing list