Ticket #18005: 18005.diff
File 18005.diff, 597 bytes (added by , 14 years ago) |
---|
-
wp-includes/theme.php
1654 1654 function get_background_image() { 1655 1655 $default = defined('BACKGROUND_IMAGE') ? BACKGROUND_IMAGE : ''; 1656 1656 1657 return get_theme_mod('background_image', $default); 1657 $url = get_theme_mod('background_image', $default); 1658 if ( is_ssl() ) { 1659 $url = str_replace( 'http://', 'https://', $url ); 1660 } else { 1661 $url = str_replace( 'https://', 'http://', $url ); 1662 } 1663 return $url; 1658 1664 } 1659 1665 1660 1666 /**