[wp-trac] [WordPress Trac] #52603: Inconsistent doc for return value of wp_generate_attachment_metadata

WordPress Trac noreply at wordpress.org
Tue Jun 15 16:52:11 UTC 2021


#52603: Inconsistent doc for return value of wp_generate_attachment_metadata
-------------------------------------+-----------------------------
 Reporter:  Chouby                   |       Owner:  SergeyBiryukov
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  5.8
Component:  Media                    |     Version:  2.5
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-refresh  |     Focuses:  docs
-------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51162" 51162]:
 {{{
 #!CommitTicketReference repository="" revision="51162"
 Media: Make sure `wp_generate_attachment_metadata()` always returns an
 array.

 This matches the documentation for the filter of the same name.

 Previously, the function could return `false` for an audio or video
 attachment that does not exist in the local filesystem.

 Props Chouby, SergeyBiryukov.
 Fixes #52603.
 }}}

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


More information about the wp-trac mailing list