Make WordPress Core

Ticket #61408: 61408.2.diff

File 61408.2.diff, 545 bytes (added by rajinsharwar, 11 months ago)

Refreshed patch

  • src/wp-includes/general-template.php

    diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
    index a73ca34317..bf70defd38 100644
    a b function has_custom_logo( $blog_id = 0 ) { 
    10351035        }
    10361036
    10371037        $custom_logo_id = get_theme_mod( 'custom_logo' );
    1038         $is_image       = wp_attachment_is_image( $custom_logo_id );
     1038        $is_image       = ( $custom_logo_id ) ? wp_attachment_is_image( $custom_logo_id ) : false;
    10391039
    10401040        if ( $switched_blog ) {
    10411041                restore_current_blog();