From 559d7c7b50ca4ac88a84a2ea711ce754a61ee227 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 23 Jun 2020 10:46:58 +0000 Subject: [PATCH] Docs: Add missing `@return` description for some theme functions: * `get_stylesheet_directory_uri()` * `get_stylesheet_uri()` * `get_locale_stylesheet_uri()` Props stevenlinx. Fixes #50450. git-svn-id: https://develop.svn.wordpress.org/trunk@48138 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/theme.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 03194b6b83..c0c94fc0ea 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -182,7 +182,7 @@ function get_stylesheet() { * * @since 1.5.0 * - * @return string Path to current theme stylesheet directory. + * @return string Path to current theme's stylesheet directory. */ function get_stylesheet_directory() { $stylesheet = get_stylesheet(); @@ -206,7 +206,7 @@ function get_stylesheet_directory() { * * @since 1.5.0 * - * @return string + * @return string URI to current theme's stylesheet directory. */ function get_stylesheet_directory_uri() { $stylesheet = str_replace( '%2F', '/', rawurlencode( get_stylesheet() ) ); @@ -233,7 +233,7 @@ function get_stylesheet_directory_uri() { * * @since 1.5.0 * - * @return string + * @return string URI to current theme's stylesheet. */ function get_stylesheet_uri() { $stylesheet_dir_uri = get_stylesheet_directory_uri(); @@ -268,7 +268,7 @@ function get_stylesheet_uri() { * * @global WP_Locale $wp_locale WordPress date and time locale object. * - * @return string + * @return string URI to current theme's localized stylesheet. */ function get_locale_stylesheet_uri() { global $wp_locale; @@ -316,7 +316,7 @@ function get_template() { * * @since 1.5.0 * - * @return string Path to current theme template directory. + * @return string Path to current theme's template directory. */ function get_template_directory() { $template = get_template(); @@ -340,7 +340,7 @@ function get_template_directory() { * * @since 1.5.0 * - * @return string URI to current theme template directory. + * @return string URI to current theme's template directory. */ function get_template_directory_uri() { $template = str_replace( '%2F', '/', rawurlencode( get_template() ) );