From 49509a1c6aa2313975b241ff02c87f8774b4ac12 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Tue, 8 Jan 2019 18:32:10 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/misc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-admin/includes/misc.php b/src/wp-admin/includes/misc.php index 541565e156..6b3e4a5347 100644 --- a/src/wp-admin/includes/misc.php +++ b/src/wp-admin/includes/misc.php @@ -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.