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/ajax-actions.php

    r22521 r22532  
    18591859        $args['post_excerpt'] = $changes['caption'];
    18601860
     1861    if ( ! empty( $changes['alt'] ) )
     1862        $args['_wp_attachment_image_alt'] = $changes['alt'];
     1863
    18611864    if ( $args )
    1862         wp_update_post( array_merge( $args, array( 'ID' => $id ) ) );
     1865        edit_post( array_merge( $args, array( 'post_ID' => $id ) ) );
    18631866
    18641867    wp_send_json_success();
Note: See TracChangeset for help on using the changeset viewer.