WordPress.org

Make WordPress Core

Changeset 13283


Ignore:
Timestamp:
02/21/10 11:21:32 (6 years ago)
Author:
dd32
Message:

Allow Deletion of Media Alt text. Props reaperhulk. Fixes #11805

File:
1 edited

Legend:

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

    r13256 r13283  
    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']) ) { 
Note: See TracChangeset for help on using the changeset viewer.