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
This commit is contained in:
whyisjake 2019-09-26 20:21:58 +00:00
parent 93dd6d907a
commit 3c0f10e397
2 changed files with 5 additions and 5 deletions

View File

@ -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 ) {

View File

@ -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.