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
This commit is contained in:
Jake Spurlock 2019-09-26 20:20:51 +00:00
parent d6770e5c61
commit c61471a495
1 changed files with 4 additions and 4 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 ) {