From 3c0f10e397b6c24ebbe4587b06e41d23faa1a9d4 Mon Sep 17 00:00:00 2001 From: whyisjake Date: Thu, 26 Sep 2019 20:21:58 +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. Built from https://develop.svn.wordpress.org/trunk@46327 git-svn-id: http://core.svn.wordpress.org/trunk@46126 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index e0539b2681..3f634985f9 100644 --- a/wp-includes/theme.php +++ b/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 ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 0da2d82607..65ce086c4f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-beta1-46326'; +$wp_version = '5.3-beta1-46327'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.