[wp-trac] [WordPress Trac] #33277: Misleading comment for wp_get_attachment_link function

WordPress Trac noreply at wordpress.org
Wed Aug 5 14:58:33 UTC 2015


#33277: Misleading comment for wp_get_attachment_link function
--------------------------+------------------------------
 Reporter:  several27     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.2.3
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  docs
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => needs-patch
 * component:  Comments => Media


Comment:

 Hi @several27, welcome to Trac and thanks for the report!

 Introduced in [27473]. We could probably just remove the `intval()` and
 let `get_post()` handle the value.

 Would you like to try submitting a patch?

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


More information about the wp-trac mailing list