WordPress.org

Make WordPress Core

Ticket #13383: 13383-custom-background.2.diff

File 13383-custom-background.2.diff, 1.1 KB (added by Utkarsh, 5 years ago)

Custom background patch refreshed against r14626

  • wp-admin/custom-background.php

     
    155155<th scope="row"><?php _e('Current Background'); ?></th> 
    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() ) {  
    161164        $background_styles .= " 
     
    202205<?php endif; ?> 
    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" /> 
    208211<?php wp_nonce_field('custom-background') ?>