Make WordPress Core


Ignore:
Timestamp:
11/11/2012 01:26:42 AM (14 years ago)
Author:
koopersmith
Message:

Media: Add backwards compatibility for attachment_fields_to_edit and attachment_fields_to_save. see #22186.

File:
1 edited

Legend:

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

    r22537 r22541  
    12891289        }
    12901290
     1291        if ( function_exists('get_compat_media_markup') )
     1292                $response['compat'] = get_compat_media_markup( $attachment->ID );
     1293
    12911294        return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta );
    12921295}
    … …  
    14541457                                <# if ( 'image' === type ) { #>
    14551458                                        <div class="dimensions">{{ width }} &times; {{ height }}</div>
     1459                                <# } #>
     1460                        </div>
     1461                        <div class="compat-meta">
     1462                                <# if ( compat && compat.meta ) { #>
     1463                                        {{{ compat.meta }}}
    14561464                                <# } #>
    14571465                        </div>
Note: See TracChangeset for help on using the changeset viewer.