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:
parent
8415217e90
commit
11229adad7
|
@ -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 = '') {
|
||||||
|
|
Loading…
Reference in New Issue