mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-23 08:41:24 +01:00
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:
parent
ac2988c39c
commit
c8dd53cdc3
@ -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'); ?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user