mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Correct 'wp_get_attachment_image_attributes' filter docs.
props tillkruess. fixes #29701. Built from https://develop.svn.wordpress.org/trunk@29750 git-svn-id: http://core.svn.wordpress.org/trunk@29522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1447092f6e
commit
2008fc0c89
@ -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
Block a user