From c61471a4952930cb53e4fb3cdad036ebc01048a4 Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Thu, 26 Sep 2019 20:20:51 +0000 Subject: [PATCH] Themes: Docblock cleanup for `get_theme_root_uri()` In the function docblock of `get_theme_root_uri()`, the argument types of `$stylesheet_or_template` and `$theme_root` do not match. Default values of arguments are boolean but in function doc they are stated as strings. Props subrataemfluence, williampatton, garrett-eclipse. Fixes #44397. git-svn-id: https://develop.svn.wordpress.org/trunk@46327 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/theme.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index e0539b2681..3f634985f9 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -608,10 +608,10 @@ function get_theme_root( $stylesheet_or_template = false ) { * * @global array $wp_theme_directories * - * @param string $stylesheet_or_template Optional. The stylesheet or template name of the theme. - * Default is to leverage the main theme root. - * @param string $theme_root Optional. The theme root for which calculations will be based, preventing - * the need for a get_raw_theme_root() call. + * @param bool|string $stylesheet_or_template Optional. The stylesheet or template name of the theme. + * Default value false, to use the main theme root. + * @param bool|string $theme_root Optional. The theme root for which calculations will be based, preventing + * the need for a get_raw_theme_root() call. Default value false. * @return string Themes URI. */ function get_theme_root_uri( $stylesheet_or_template = false, $theme_root = false ) {