Ticket #28904: 28904.patch
File 28904.patch, 1.0 KB (added by , 10 years ago) |
---|
-
src/wp-admin/custom-header.php
1018 1018 if ( ! isset( $choice['attachment_id'] ) || ! isset( $choice['url'] ) ) 1019 1019 return; 1020 1020 1021 $choice['url'] = esc_url_raw( $choice['url']);1021 $choice['url'] = esc_url_raw( str_replace( get_site_url(), '', $choice['url'] ) ); 1022 1022 1023 1023 $header_image_data = (object) array( 1024 1024 'attachment_id' => $choice['attachment_id'], -
src/wp-includes/theme.php
1040 1040 if ( 'remove-header' == $url ) 1041 1041 return false; 1042 1042 1043 if ( is_random_header_image() ) 1043 if ( is_random_header_image() ) { 1044 1044 $url = get_random_header_image(); 1045 } else { 1046 $url = get_site_url() . $url; 1047 } 1045 1048 1046 1049 return esc_url_raw( set_url_scheme( $url ) ); 1047 1050 }