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

git-svn-id: https://develop.svn.wordpress.org/trunk@12240 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-11-20 06:07:54 +00:00
parent f13b20b423
commit 6f4ae7b89a
1 changed files with 1 additions and 0 deletions

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'); ?>