Pass the attachment ID to the 'image_add_caption_text' filter.

fixes #29607.

git-svn-id: https://develop.svn.wordpress.org/trunk@29754 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-09-21 10:10:19 +00:00
parent 9e673c7eee
commit 994566bb17
1 changed files with 2 additions and 1 deletions

View File

@ -170,8 +170,9 @@ function image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $
* @since 4.1.0 * @since 4.1.0
* *
* @param string $caption The original caption text. * @param string $caption The original caption text.
* @param int $id The attachment ID.
*/ */
$caption = apply_filters( 'image_add_caption_text', $caption ); $caption = apply_filters( 'image_add_caption_text', $caption, $id );
/** /**
* Filter whether to disable captions. * Filter whether to disable captions.