Changeset 23083 for trunk/wp-admin/includes/ajax-actions.php
- Timestamp:
- 12/06/2012 12:41:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r23058 r23083 1885 1885 $post['post_excerpt'] = $changes['caption']; 1886 1886 1887 if ( isset( $changes['description'] ) ) 1888 $post['post_content'] = $changes['description']; 1889 1887 1890 if ( isset( $changes['alt'] ) ) { 1888 1891 $alt = get_post_meta( $id, '_wp_attachment_image_alt', true ); … … 1923 1926 if ( 'attachment' != $post['post_type'] ) 1924 1927 wp_send_json_error(); 1925 1926 // Handle the description field automatically, if a plugin adds it back.1927 if ( isset( $attachment_data['post_content'] ) )1928 $post['post_content'] = $attachment_data['post_content'];1929 1928 1930 1929 $post = apply_filters( 'attachment_fields_to_save', $post, $attachment_data );
Note: See TracChangeset
for help on using the changeset viewer.