[wp-trac] [WordPress Trac] #37377: Fix docs and parameter name on `wp_attachment_is()`

WordPress Trac noreply at wordpress.org
Fri Jul 15 21:06:41 UTC 2016


#37377: Fix docs and parameter name on `wp_attachment_is()`
--------------------------+-------------------------
 Reporter:  flixos90      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.6
Component:  Media         |    Version:  4.2
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  docs          |
--------------------------+-------------------------
 The docs for the parameter `$post_id` of `wp_attachment_is()` is
 incorrect. While it has correct type definitions, the description is not
 accurate. Also I would think the parameter should rather be called `$post`
 and have `null` as default, similar to usage in other functions.

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


More information about the wp-trac mailing list