Make WordPress Core

Ticket #18041: 18041.2.patch

File 18041.2.patch, 1.6 KB (added by billerickson, 13 years ago)
  • wp-admin/custom-background.php

     
    190190
    191191if ( get_background_image() ) {
    192192        // background-image URL must be single quote, see below
    193         $background_styles .= ' background-image: url(\'' . get_theme_mod('background_image_thumb', '') . '\');'
     193        $background_styles .= ' background-image: url(\'' . get_theme_mod('background_image_thumb', get_background_image() ) . '\');'
    194194                . ' background-repeat: ' . get_theme_mod('background_repeat', 'repeat') . ';'
    195195                . ' background-position: top ' . get_theme_mod('background_position_x', 'left');
    196196}
    197197?>
    198198<div id="custom-background-image" style="<?php echo $background_styles; ?>"><?php // must be double quote, see above ?>
    199199<?php if ( get_background_image() ) { ?>
    200 <img class="custom-background-image" src="<?php echo get_theme_mod('background_image_thumb', ''); ?>" style="visibility:hidden;" alt="" /><br />
    201 <img class="custom-background-image" src="<?php echo get_theme_mod('background_image_thumb', ''); ?>" style="visibility:hidden;" alt="" />
     200<img class="custom-background-image" src="<?php echo get_theme_mod('background_image_thumb', get_background_image() ); ?>" style="visibility:hidden;" alt="" /><br />
     201<img class="custom-background-image" src="<?php echo get_theme_mod('background_image_thumb', get_background_image() ); ?>" style="visibility:hidden;" alt="" />
    202202<?php } ?>
    203203</div>
    204204<?php } ?>
     
    358358        }
    359359
    360360}
    361 ?>
     361?>
     362 No newline at end of file