Ticket #22759: 22759.diff
File 22759.diff, 1.7 KB (added by , 12 years ago) |
---|
-
wp-includes/media.php
1395 1395 } 1396 1396 1397 1397 if ( function_exists('get_compat_media_markup') ) 1398 $response['compat'] = get_compat_media_markup( $attachment->ID, array( ' taxonomies' => true, 'description' => true ) );1398 $response['compat'] = get_compat_media_markup( $attachment->ID, array( 'in_modal' => true, 'taxonomies' => true, 'description' => true ) ); 1399 1399 1400 1400 return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta ); 1401 1401 } -
wp-admin/includes/media.php
1286 1286 1287 1287 $default_args = array( 1288 1288 'errors' => null, 1289 'in_modal' => false, 1289 1290 'taxonomies' => false, 1290 1291 'description' => false, 1291 1292 ); … … 1338 1339 $media_meta = apply_filters( 'media_meta', '', $post ); 1339 1340 1340 1341 $defaults = array( 1341 'input' => 'text', 1342 'required' => false, 1343 'value' => '', 1344 'extra_rows' => array(), 1342 'input' => 'text', 1343 'required' => false, 1344 'value' => '', 1345 'extra_rows' => array(), 1346 'show_in_edit' => true, 1347 'show_in_modal' => true, 1345 1348 ); 1346 1349 1347 1350 $hidden_fields = array(); … … 1361 1364 1362 1365 $field = array_merge( $defaults, $field ); 1363 1366 1367 if ( ( ! $field['show_in_edit'] && ! $args['in_modal'] ) || ( ! $field['show_in_modal'] && $args['in_modal'] ) ) 1368 continue; 1369 1364 1370 if ( $field['input'] == 'hidden' ) { 1365 1371 $hidden_fields[$name] = $field['value']; 1366 1372 continue;