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-includes/media.php

    r22920 r22929  
    13891389
    13901390    if ( function_exists('get_compat_media_markup') )
    1391         $response['compat'] = get_compat_media_markup( $attachment->ID, array( 'taxonomies' => true ) );
     1391        $response['compat'] = get_compat_media_markup( $attachment->ID, array( 'taxonomies' => true, 'description' => true ) );
    13921392
    13931393    return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta );
Note: See TracChangeset for help on using the changeset viewer.