Make WordPress Core


Ignore:
Timestamp:
11/29/2012 11:52:30 PM (9 years ago)
Author:
ryan
Message:

Introduce API to add back the description field in the new media popup.

Props nacin
fixes #22642

File:
1 edited

Legend:

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

    r22869 r22929  
    19001900        wp_send_json_error();
    19011901
     1902    // Handle the description field automatically, if a plugin adds it back.
     1903    if ( isset( $attachment_data['post_content'] ) )
     1904        $post['post_content'] = $attachment_data['post_content'];
     1905
    19021906    $post = apply_filters( 'attachment_fields_to_save', $post, $attachment_data );
    19031907
Note: See TracChangeset for help on using the changeset viewer.