Docs: Specify missing `global` variables used in `wp_print_theme_file_tree()`.

The `$relative_file` and `$stylesheet` variables are used in the `wp_print_theme_file_tree()` function but were not noted within the inline documentation.

Props mukesh27, desrosj,
Fixes #43682.

git-svn-id: https://develop.svn.wordpress.org/trunk@44477 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2019-01-08 18:32:10 +00:00
parent aea4b2765a
commit 49509a1c6a
1 changed files with 4 additions and 0 deletions

View File

@ -313,6 +313,10 @@ function wp_make_theme_file_tree( $allowed_files ) {
* @since 4.9.0
* @access private
*
* @global string $relative_file Name of the file being edited relative to the
* theme directory.
* @global string $stylesheet The stylesheet name of the theme being edited.
*
* @param array|string $tree List of file/folder paths, or filename.
* @param int $level The aria-level for the current iteration.
* @param int $size The aria-setsize for the current iteration.