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

WordPress Trac noreply at wordpress.org
Mon Feb 22 15:29:19 UTC 2021


#52603: Inconsistent doc for return value of wp_generate_attachment_metadata
--------------------------+-----------------------------
 Reporter:  Chouby        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  2.5
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 The return value of `wp_generate_attachment_metadata()` is documented as
 mixed. However, the filter `wp_generate_attachment_metadata` documents it
 as array. So I would expect that the return value would be documented as
 array too.

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


More information about the wp-trac mailing list