WordPress.org

Make WordPress Core

Ticket #24580: media_patch.diff

File media_patch.diff, 649 bytes (added by AlexanderOMara, 2 years ago)

media.php diff

  • media.php

     
    23832383        <div class="wp_attachment_details edit-form-section"> 
    23842384                <p> 
    23852385                        <label for="attachment_caption"><strong><?php _e( 'Caption' ); ?></strong></label><br /> 
    2386                         <textarea class="widefat" name="excerpt" id="attachment_caption"><?php echo $post->post_excerpt; ?></textarea> 
     2386                        <textarea class="widefat" name="excerpt" id="attachment_caption"><?php echo esc_textarea( $post->post_excerpt ); ?></textarea> 
    23872387                </p> 
    23882388 
    23892389        <?php if ( 'image' === substr( $post->post_mime_type, 0, 5 ) ) : ?>