Changeset 16846
- Timestamp:
- 12/09/2010 05:59:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r16721 r16846 1416 1416 */ 1417 1417 function get_header_image() { 1418 $default = defined('HEADER_IMAGE') ? HEADER_IMAGE : ''; 1419 1420 return get_theme_mod('header_image', $default); 1418 $default = defined( 'HEADER_IMAGE' ) ? HEADER_IMAGE : ''; 1419 1420 $url = get_theme_mod( 'header_image', $default ); 1421 1422 if ( is_ssl() ) 1423 $url = str_replace( 'http://', 'https://', $url ); 1424 else 1425 $url = str_replace( 'https://', 'http://', $url ); 1426 1427 return $url; 1421 1428 } 1422 1429
Note: See TracChangeset
for help on using the changeset viewer.