Submit the "Save all changes" form by pressing Enter, props abackstrom, fixes #8557

git-svn-id: http://svn.automattic.com/wordpress/trunk@12240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-11-20 06:07:54 +00:00
parent ac2988c39c
commit c8dd53cdc3

View File

@ -1461,6 +1461,7 @@ function media_upload_type_form($type = 'file', $errors = null, $id = null) {
?>
<form enctype="multipart/form-data" method="post" action="<?php echo esc_attr($form_action_url); ?>" class="media-upload-form type-form validate" id="<?php echo $type; ?>-form">
<input type="submit" class="hidden" name="save" value="">
<input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" />
<?php wp_nonce_field('media-form'); ?>