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:
parent
2b002dfab6
commit
1ff3a1e05a
@ -194,6 +194,7 @@ Event.observe( window, 'load', hide_text );
|
|||||||
<h2><?php _e('Reset Header Image and Color'); ?></h2>
|
<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>
|
<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)) ?>">
|
<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'); ?>" />
|
<input type="submit" name="resetheader" value="<?php _e('Restore Original Header'); ?>" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user