Correct 'wp_get_attachment_image_attributes' filter docs.
props tillkruess. fixes #29701. git-svn-id: https://develop.svn.wordpress.org/trunk@29750 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9c751b268a
commit
5b2c58d5b3
|
@ -720,7 +720,7 @@ function wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = fa
|
|||
* @since 2.8.0
|
||||
*
|
||||
* @param mixed $attr Attributes for the image markup.
|
||||
* @param int $attachment_id Image attachment ID.
|
||||
* @param int $attachment Image attachment post.
|
||||
*/
|
||||
$attr = apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment );
|
||||
$attr = array_map( 'esc_attr', $attr );
|
||||
|
|
Loading…
Reference in New Issue