Make WordPress Core

Ticket #29607: 29607.patch

File 29607.patch, 472 bytes (added by collinsinternet, 10 years ago)

Creation of image_add_caption filter.

  • wp-admin/includes/media.php

     
    168168         * @param bool $bool Whether to disable appending captions. Returning true to the filter
    169169         *                   will disable captions. Default empty string.
    170170         */
     171        $caption=apply_filters('image_add_caption',$caption);
    171172        if ( empty($caption) || apply_filters( 'disable_captions', '' ) )
    172173                return $html;
    173174