WordPress.org

Make WordPress Core

Ticket #34339: 34339.2.patch

File 34339.2.patch, 707 bytes (added by swissspidy, 4 years ago)
  • src/wp-includes/general-template.php

    diff --git src/wp-includes/general-template.php src/wp-includes/general-template.php
    index 23525b5..bceacd0 100644
    function get_bloginfo( $show = '', $filter = 'raw' ) { 
    736736function get_site_icon_url( $size = 512, $url = '', $blog_id = 0 ) {
    737737        if ( $blog_id && is_multisite() ) {
    738738                $site_icon_id = get_blog_option( $blog_id, 'site_icon' );
     739
     740                if ( false === $site_icon_id ) {
     741                        update_blog_option( $blog_id, 'site_icon', '' );
     742                }
    739743        } else {
    740744                $site_icon_id = get_option( 'site_icon' );
     745
     746                if ( false === $site_icon_id ) {
     747                        update_option( 'site_icon', '' );
     748                }
    741749        }
    742750
    743751        if ( $site_icon_id ) {