Ticket #36639: custom-logo-blog_context.patch
File custom-logo-blog_context.patch, 805 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/general-template.php
895 895 ); 896 896 } 897 897 898 if ( is_multisite() && ms_is_switched() ) {899 restore_current_blog();900 }901 902 898 /** 903 899 * Filter the custom logo output. 904 900 * … … 905 901 * @since 4.5.0 906 902 * 907 903 * @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. 908 905 */ 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; 910 913 } 911 914 912 915 /**