Ticket #13383: 13383-custom-background.2.diff
File 13383-custom-background.2.diff, 1.1 KB (added by , 15 years ago) |
---|
-
wp-admin/custom-background.php
155 155 <th scope="row"><?php _e('Current Background'); ?></th> 156 156 <td> 157 157 <?php 158 $background_styles = "background-color: #" . get_background_color() . ";"; 158 $background_styles = ''; 159 if ( get_background_color() ) { 160 $background_styles .= "background-color: #" . get_background_color() . ";"; 161 } 159 162 160 163 if ( get_background_image() ) { 161 164 $background_styles .= " … … 202 205 <?php endif; ?> 203 206 <tr valign="top"> 204 207 <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=""> 206 209 <label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" /> 207 210 <input type="hidden" name="action" value="save" /> 208 211 <?php wp_nonce_field('custom-background') ?>