Make WordPress Core


Ignore:
Timestamp:
11/10/2012 06:25:04 PM (12 years ago)
Author:
koopersmith
Message:

Media: Add title, caption, and alt text, and attachment info to sidebar.

  • Improve sidebar styles.
  • Separate the hybrid title/caption field.
  • Improve the sidebar image thumbnail.
  • Remove filenames from inside the non-image icon thumbnail.
  • Properly sync title/caption/alt.

see #21390.

File:
1 edited

Legend:

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

    r22410 r22532  
    166166    if ( is_wp_error($post_data) )
    167167        wp_die( $post_data->get_error_message() );
    168     if ( 'autosave' != $post_data['action'] && 'auto-draft' == $post_data['post_status'] )
     168    if ( ( empty( $post_data['action'] ) || 'autosave' != $post_data['action'] ) && 'auto-draft' == $post_data['post_status'] ) {
    169169        $post_data['post_status'] = 'draft';
     170    }
    170171
    171172    if ( isset($post_data['visibility']) ) {
Note: See TracChangeset for help on using the changeset viewer.