Make WordPress Core


Ignore:
Timestamp:
05/14/2010 08:20:06 AM (14 years ago)
Author:
nacin
Message:

Ensure validation. props Utkarsh, see #13383.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-background.php

    r14624 r14628  
    156156<td>
    157157<?php
    158 $background_styles = "background-color: #" . get_background_color() . ";";
     158$background_styles = '';
     159if ( get_background_color() ) {
     160    $background_styles .= "background-color: #" . get_background_color() . ";";
     161}
    159162
    160163if ( get_background_image() ) {
     
    203206<tr valign="top">
    204207<th scope="row"><?php _e('Upload Image'); ?></th>
    205 <td><form enctype="multipart/form-data" id="uploadForm" method="POST" action="">
     208<td><form enctype="multipart/form-data" id="uploadForm" method="post" action="">
    206209<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
    207210<input type="hidden" name="action" value="save" />
Note: See TracChangeset for help on using the changeset viewer.