Skip to content
Permalink
Browse files

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
  • Loading branch information...
whyisjake committed Sep 26, 2019
1 parent d6770e5 commit c61471a4952930cb53e4fb3cdad036ebc01048a4
Showing with 4 additions and 4 deletions.
  1. +4 −4 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 ) {

0 comments on commit c61471a

Please sign in to comment.
You can’t perform that action at this time.