Make WordPress Core

Ticket #13383: 13383-custom-header.diff

File 13383-custom-header.diff, 1.4 KB (added by Utkarsh, 14 years ago)

Fixes validation errors on custom header page.

  • wp-admin/custom-header.php

     
    416416<div class="wrap">
    417417<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>
    418418
    419 <form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>">
     419<form enctype="multipart/form-data" id="uploadForm" method="post" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>">
    420420<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
    421421<input type="hidden" name="action" value="save" />
    422422<?php wp_nonce_field('custom-header') ?>
     
    507507
    508508<div class="wrap">
    509509
    510 <form method="POST" action="<?php echo esc_attr(add_query_arg('step', 3)) ?>">
     510<form method="post" action="<?php echo esc_attr(add_query_arg('step', 3)) ?>">
    511511
    512512<p><?php _e('Choose the part of the image you want to use as your header.'); ?></p>
    513513<div id="testWrap" style="position: relative">