Add nonce to avoid AYS when restoring image header.

git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-05-15 16:47:07 +00:00
parent dc5e0fe929
commit 81a13c27f5
1 changed files with 1 additions and 0 deletions

View File

@ -194,6 +194,7 @@ Event.observe( window, 'load', hide_text );
<h2><?php _e('Reset Header Image and Color'); ?></h2>
<p><?php _e('This will restore the original header image and color. You will not be able to retrieve any customizations.') ?></p>
<form method="post" action="<?php echo attribute_escape(add_query_arg('step', 1)) ?>">
<?php wp_nonce_field('custom-header'); ?>
<input type="submit" name="resetheader" value="<?php _e('Restore Original Header'); ?>" />
</form>
</div>