WordPress.org

Make WordPress Core

Changeset 29754


Ignore:
Timestamp:
09/21/2014 10:10:19 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Pass the attachment ID to the 'image_add_caption_text' filter.

fixes #29607.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r29753 r29754  
    171171     *
    172172     * @param string $caption The original caption text.
     173     * @param int    $id      The attachment ID.
    173174     */
    174     $caption = apply_filters( 'image_add_caption_text', $caption );
     175    $caption = apply_filters( 'image_add_caption_text', $caption, $id );
    175176
    176177    /**
Note: See TracChangeset for help on using the changeset viewer.