Add phpdoc for $attr argument of wp_get_attachment_image(). props GaryJ. fixes #23791.

git-svn-id: http://core.svn.wordpress.org/trunk@23714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-03-15 17:19:10 +00:00
parent 8415217e90
commit 11229adad7
1 changed files with 1 additions and 0 deletions

View File

@ -539,6 +539,7 @@ function wp_get_attachment_image_src($attachment_id, $size='thumbnail', $icon =
* @param int $attachment_id Image attachment ID. * @param int $attachment_id Image attachment ID.
* @param string $size Optional, default is 'thumbnail'. * @param string $size Optional, default is 'thumbnail'.
* @param bool $icon Optional, default is false. Whether it is an icon. * @param bool $icon Optional, default is false. Whether it is an icon.
* @param mixed $attr Optional, attributes for the image markup.
* @return string HTML img element or empty string on failure. * @return string HTML img element or empty string on failure.
*/ */
function wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = false, $attr = '') { function wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = false, $attr = '') {