Save widget when pressing Enter, see #9511
git-svn-id: http://svn.automattic.com/wordpress/trunk@10941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d8fc27682d
commit
77a7c69770
|
@ -224,7 +224,7 @@ function wp_widget_control( $sidebar_args ) {
|
|||
<div class="widget-control-actions">
|
||||
<a class="button widget-control-remove alignleft" href="<?php echo $edit ? clean_url( add_query_arg( array( 'remove' => $id_format, 'key' => $key, '_wpnonce' => $nonce ) ) ) : '#remove'; ?>"><?php _e('Remove'); ?></a>
|
||||
<?php if ( !empty($control) ) { ?>
|
||||
<a class="button-primary widget-control-save alignright" href="<?php echo $edit ? clean_url( add_query_arg( array( 'save' => $id_format, 'key' => $key, '_wpnonce' => $nonce ) ) ) : '#save'; ?>"><?php _e('Save'); ?></a>
|
||||
<input type="submit" name="savewidget" class="button-primary widget-control-save alignright" value="<?php _e('Save'); ?>" />
|
||||
<?php } ?>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue