WordPress.org

Make WordPress Core

Ticket #13383: 13383-custom-background.diff

File 13383-custom-background.diff, 1.2 KB (added by Utkarsh, 8 years ago)

Fixes several validation errors on custom background page.

  • wp-admin/custom-background.php

     
    156156<td>
    157157<style type="text/css">
    158158#custom-background-image {
     159        <?php if ( get_background_color() ) { ?>
    159160        background-color: #<?php echo get_background_color()?>;
     161        <?php } ?>
    160162        <?php if ( get_background_image() ) { ?>
    161163        background: url(<?php echo get_theme_mod('background_image_thumb', ''); ?>);
    162164        background-repeat: <?php echo get_theme_mod('background_repeat', 'no-repeat'); ?>;
     
    201203<?php endif; ?>
    202204<tr valign="top">
    203205<th scope="row"><?php _e('Upload Image'); ?></th>
    204 <td><form enctype="multipart/form-data" id="uploadForm" method="POST" action="">
     206<td><form enctype="multipart/form-data" id="uploadForm" method="post" action="">
    205207<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
    206208<input type="hidden" name="action" value="save" />
    207209<?php wp_nonce_field('custom-background') ?>
     
    210212</p>
    211213</form>
    212214</td>
     215</tr>
    213216</tbody>
    214217</table>
    215218