Make WordPress Core

Ticket #11805: 11805.2.patch

File 11805.2.patch, 660 bytes (added by miqrogroove, 16 years ago)

Refreshed patch file by reaperhulk

  • wp-admin/includes/media.php

     
    422422
    423423                $post = apply_filters('attachment_fields_to_save', $post, $attachment);
    424424
    425                 if ( isset($attachment['image_alt']) && !empty($attachment['image_alt']) ) {
     425                if ( isset($attachment['image_alt']) ) {
    426426                        $image_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true);
    427427                        if ( $image_alt != stripslashes($attachment['image_alt']) ) {
    428428                                $image_alt = wp_strip_all_tags( stripslashes($attachment['image_alt']), true );