[wp-trac] [WordPress Trac] #59698: Incorrect docs for `wp_attachment_is()`

WordPress Trac noreply at wordpress.org
Fri Jan 12 16:47:18 UTC 2024


#59698: Incorrect docs for `wp_attachment_is()`
--------------------------------------+------------------------
 Reporter:  joedolson                 |       Owner:  joedolson
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.5
Component:  Media                     |     Version:  4.2
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:  docs
--------------------------------------+------------------------
Changes (by joedolson):

 * owner:  (none) => joedolson
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57273" 57273]:
 {{{
 #!CommitTicketReference repository="" revision="57273"
 Media: Fix inaccurate docs for `wp_attachment_is()`.

 Correct the documentation for the `$type` parameter to accept file
 extensions as well as attachment type groups. Also fix the return
 description to reflect the change.

 Props nirav7707, joedolson.
 Fixes #59698.
 }}}

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


More information about the wp-trac mailing list