WordPress.org

Make WordPress Core

Changeset 10941


Ignore:
Timestamp:
04/15/2009 11:25:28 PM (10 years ago)
Author:
azaozz
Message:

Save widget when pressing Enter, see #9511

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/widgets.php

    r10916 r10941  
    225225                <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>
    226226<?php       if ( !empty($control) ) { ?>
    227                 <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>
     227                <input type="submit" name="savewidget" class="button-primary widget-control-save alignright" value="<?php _e('Save'); ?>" />
    228228<?php       } ?>
    229229                <br class="clear" />
Note: See TracChangeset for help on using the changeset viewer.