| 1 |
<form action="<?php echo $url; ?>" method="post" style="padding:0 10px 10px" class="media-item"> |
| 2 |
<div class="submit"><input type="submit" class="button-primary" value="<?php _e('Update Media'); ?>" /></div> |
| 3 |
<input type="hidden" name="action" value="editattachment" /> |
| 4 |
<input type="hidden" name="attachment_id" value="<?php echo $id; ?>" /> |
| 5 |
<?php |
| 6 |
wp_nonce_field('media-form'); |
| 7 |
wp_original_referer_field(true, 'current'); |
| 8 |
|
| 9 |
echo get_media_item($id, array( |
| 10 |
'toggle' => false, |
| 11 |
'show_title' => false |
| 12 |
)); |
| 13 |
?> |
| 14 |
<div class="submit"><input type="submit" class="button-primary" value="<?php _e('Update Media'); ?>" /></div> |
| 15 |
</form> |