# wp-attachments/3.2/html/attachmentEditIframe.php

WP Attachments, version 3.2. 15 lines.

- Page: https://pluginprobe.com/plugins/wp-attachments/3.2/code/html/attachmentEditIframe.php
- Raw: https://pluginprobe.com/plugins/wp-attachments/3.2/raw/html/attachmentEditIframe.php
- Modified: 2014-03-03T18:13:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-attachments/3.2/code/html/attachmentEditIframe.php#L10-L20`.

```php
	<form action="<?php echo $url; ?>" method="post" style="padding:0 10px 10px" class="media-item">
		<div class="submit"><input type="submit" class="button-primary" value="<?php _e('Update Media'); ?>" /></div>
		<input type="hidden" name="action" value="editattachment" />
		<input type="hidden" name="attachment_id" value="<?php echo $id; ?>" />
		<?php
		wp_nonce_field('media-form');
		wp_original_referer_field(true, 'current');

		echo get_media_item($id, array(
			'toggle'        => false,
			'show_title'    => false
		));
		?>
		<div class="submit"><input type="submit" class="button-primary" value="<?php _e('Update Media'); ?>" /></div>
	</form>
```
