diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php
index 326505280c..cc4febd0a7 100644
--- a/wp-admin/includes/media.php
+++ b/wp-admin/includes/media.php
@@ -1413,9 +1413,12 @@ function get_compat_media_markup( $attachment_id, $args = null ) {
if ( $item )
$item = '
';
+ foreach ( $hidden_fields as $hidden_field => $value ) {
+ $item .= '' . "\n";
+ }
+
return array(
'item' => $item,
- 'hidden' => $hidden_fields,
'meta' => $media_meta,
);
}
@@ -2332,9 +2335,6 @@ function edit_form_image_editor() {
ID );
echo $extras['item'];
- foreach ( $extras['hidden'] as $hidden_field => $value ) {
- echo '' . "\n";
- }
echo '' . "\n";
}