Ticket #25156: 25156.diff
File 25156.diff, 706 bytes (added by , 12 years ago) |
---|
-
wp-includes/theme.php
1034 1034 * 1035 1035 * @since 3.4.0 1036 1036 * 1037 * @return object 1037 * @return mixed False if there is no header, or an object with the properties 1038 * 'url', 'thumbnail_url', 'width', and 'height'. 1038 1039 */ 1039 1040 function get_custom_header() { 1040 1041 global $_wp_default_headers; 1041 1042 1042 if ( is_random_header_image() ) { 1043 if ( 'remove-header' == get_theme_mod( 'header_image' ) ) { 1044 return false; 1045 } elseif ( is_random_header_image() ) { 1043 1046 $data = _get_random_header_data(); 1044 1047 } else { 1045 1048 $data = get_theme_mod( 'header_image_data' );