Ensure validation. props Utkarsh, see #13383.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-14 08:07:01 +00:00
parent 37ce82fd24
commit 85655c586f
1 changed files with 2 additions and 2 deletions

View File

@ -416,7 +416,7 @@ endif;
<div class="wrap">
<h3><?php _e('Upload New Header Image'); ?></h3><p><?php _e('Here you can upload a custom header image to be shown at the top of your site instead of the default one. On the next screen you will be able to crop the image.'); ?> <?php printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?></p>
<form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>">
<form enctype="multipart/form-data" id="uploadForm" method="post" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>">
<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
<input type="hidden" name="action" value="save" />
<?php wp_nonce_field('custom-header') ?>
@ -507,7 +507,7 @@ if ( !empty($this->default_headers) ) {
<div class="wrap">
<form method="POST" action="<?php echo esc_attr(add_query_arg('step', 3)) ?>">
<form method="post" action="<?php echo esc_attr(add_query_arg('step', 3)) ?>">
<p><?php _e('Choose the part of the image you want to use as your header.'); ?></p>
<div id="testWrap" style="position: relative">