Make WordPress Core

Ticket #25156: 25156.diff

File 25156.diff, 706 bytes (added by nacin, 12 years ago)
  • wp-includes/theme.php

     
    10341034 *
    10351035 * @since 3.4.0
    10361036 *
    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'.
    10381039 */
    10391040function get_custom_header() {
    10401041        global $_wp_default_headers;
    10411042
    1042         if ( is_random_header_image() ) {
     1043        if ( 'remove-header' == get_theme_mod( 'header_image' ) ) {
     1044                return false;
     1045        } elseif ( is_random_header_image() ) {
    10431046                $data = _get_random_header_data();
    10441047        } else {
    10451048                $data = get_theme_mod( 'header_image_data' );