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

WordPress Trac noreply at wordpress.org
Thu Aug 6 19:18:25 UTC 2015


#33277: Misleading comment for wp_get_attachment_link function
---------------------------------+-----------------------------
 Reporter:  several27            |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  Future Release
Component:  Media                |     Version:  4.2.3
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 4.4-early  |     Focuses:  docs
---------------------------------+-----------------------------

Comment (by DrewAPicture):

 Replying to [comment:7 knutsp]:
 > Replying to [comment:6 MikeHansenMe]:
 > > So is this just a problem with the function doc stating it can be a
 post object?
 >
 > Probably, and that's a bug. This patch solves it, and at the same time,
 it's an enhancement.

 So, realistically, we should add a changelog entry mentioning that it now
 ''actually'' supports a `WP_Post` object.

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


More information about the wp-trac mailing list