Make WordPress Core

Ticket #36639: custom-logo-blog_context.patch

File custom-logo-blog_context.patch, 805 bytes (added by achbed, 7 years ago)
  • src/wp-includes/general-template.php

     
    895895                );
    896896        }
    897897
    898         if ( is_multisite() && ms_is_switched() ) {
    899                 restore_current_blog();
    900         }
    901 
    902898        /**
    903899         * Filter the custom logo output.
    904900         *
     
    905901         * @since 4.5.0
    906902         *
    907903         * @param string $html Custom logo HTML output.
     904         * @param int $blog_id ID of the blog in question. Default is the ID of the current blog.
    908905         */
    909         return apply_filters( 'get_custom_logo', $html );
     906        $html = apply_filters( 'get_custom_logo', $html, $blog_id );
     907
     908        if ( is_multisite() && ms_is_switched() ) {
     909                restore_current_blog();
     910        }
     911
     912        return $html;
    910913}
    911914
    912915/**