Add nonce to avoid AYS when restoring image header.

git-svn-id: https://develop.svn.wordpress.org/trunk@5478 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-05-15 16:47:15 +00:00
parent 2b002dfab6
commit 1ff3a1e05a

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>