Make WordPress Core


Ignore:
Timestamp:
11/21/2012 06:53:00 PM (12 years ago)
Author:
nacin
Message:

Support attachment_fields_to_save and attachment_fields_to_edit for attachments going through post.php. see #22186. see #21391.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r22770 r22783  
    12941294
    12951295    if ( function_exists('get_compat_media_markup') )
    1296         $response['compat'] = get_compat_media_markup( $attachment->ID );
     1296        $response['compat'] = get_compat_media_markup( $attachment->ID, array( 'taxonomies' => true ) );
    12971297
    12981298    return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta );
Note: See TracChangeset for help on using the changeset viewer.