WordPress.org

Make WordPress Core

Ticket #13383: 13383-no_duplicate_function_call.patch

File 13383-no_duplicate_function_call.patch, 566 bytes (added by TobiasBg, 4 years ago)

Patch to remove duplicate function call of [14628], see #comment:15

  • wp-admin/custom-background.php

     
    156156<td> 
    157157<?php 
    158158$background_styles = ''; 
    159 if ( get_background_color() ) { 
    160         $background_styles .= "background-color: #" . get_background_color() . ";"; 
    161 } 
     159if ( $background_color = get_background_color() ) 
     160        $background_styles .= "background-color: #{$background_color};"; 
    162161 
    163162if ( get_background_image() ) {  
    164163        $background_styles .= "