Opened 9 years ago
Closed 9 years ago
#37377 closed defect (bug) (fixed)
Fix docs and parameter name on `wp_attachment_is()`
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.6 | Priority: | normal |
| Severity: | normal | Version: | 4.2 |
| Component: | Media | Keywords: | has-patch |
| Focuses: | docs | Cc: |
Description
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 38068: