/** * Callback for rendering the site logo, used in the site_logo partial. * * This method exists because the partial object and context data are passed * into a partial's render_callback so we cannot use get_the_site_logo() as * the render_callback directly since it expects a blog ID as the first * argument. When WP no longer supports PHP 5.3, this method can be removed * in favor of an anonymous function. * * @see WP_Customize_Manager::register_controls() * * @since 4.5.0 * @access private * * @return string Site logo. */ public function _render_site_logo_partial() { return get_the_site_logo(); }
/** * Displays a Site Logo, linked to home. * * @since 4.5.0 * * @param int $blog_id Optional. ID of the blog in question. Default current blog. */ function the_site_logo($blog_id = 0) { echo get_the_site_logo($blog_id); }