Make WordPress Core

Ticket #29607: 29607.3.patch

File 29607.3.patch, 966 bytes (added by DrewAPicture, 10 years ago)

Rewording

  • src/wp-admin/includes/media.php

     
    159159function image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $alt = '' ) {
    160160
    161161        /**
     162         * Filter the caption text.
     163         *
     164         * Note: If the caption text is empty, the caption shortcode will not be appended
     165         * to the image HTML when inserted into the editor.
     166         *
     167         * Passing an empty value also prevents the 'image_add_caption_shortcode' filter
     168         * from being evaluated at the end of {@see image_add_caption()}.
     169         *
     170         * @since 4.1.0
     171         *
     172         * @param string $caption The original caption text.
     173         */
     174        $caption = apply_filters( 'image_add_caption_text', $caption );
     175
     176        /**
    162177         * Filter whether to disable captions.
    163178         *
    164179         * Prevents image captions from being appended to image HTML when inserted into the editor.