From 91583fe499b618ce0aa3cfd7505ac33a92b25889 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 12 Oct 2015 23:27:18 +0000 Subject: [PATCH] Add missing `@since` params and update the docs for `site_icon_url()` and `has_site_icon()`. See #32246 git-svn-id: https://develop.svn.wordpress.org/trunk@35090 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index e7158b9021..f8ee2b7056 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -758,9 +758,11 @@ function get_site_icon_url( $size = 512, $url = '', $blog_id = 0 ) { /** * Displays the Site Icon URL. * - * @param int $size Size of the site icon. - * @param string $url Fallback url if no site icon is found. - * @param int $blog_id Id of the blog to get the site icon for. + * @since 4.3.0 + * + * @param int $size Optional. Size of the site icon. Default 512 (pixels). + * @param string $url Optional. Fallback url if no site icon is found. Default empty. + * @param int $blog_id Optional. ID of the blog to get the site icon for. Default current blog. */ function site_icon_url( $size = 512, $url = '', $blog_id = 0 ) { echo esc_url( get_site_icon_url( $size, $url, $blog_id ) ); @@ -769,8 +771,10 @@ function site_icon_url( $size = 512, $url = '', $blog_id = 0 ) { /** * Whether the site has a Site Icon. * - * @param int $blog_id Optional. Blog ID. Default: Current blog. - * @return bool + * @since 4.3.0 + * + * @param int $blog_id Optional. ID of the blog in question. Default current blog. + * @return bool Whether the site has a site icon or not. */ function has_site_icon( $blog_id = 0 ) { return (bool) get_site_icon_url( 512, '', $blog_id );