From 51155f3989c29bbae5322b6cba58952a7c58b0ba Mon Sep 17 00:00:00 2001 From: desrosj Date: Tue, 8 Jan 2019 18:33:49 +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. Built from https://develop.svn.wordpress.org/trunk@44477 git-svn-id: http://core.svn.wordpress.org/trunk@44308 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/misc.php | 4 ++++ wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index 541565e156..6b3e4a5347 100644 --- a/wp-admin/includes/misc.php +++ b/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. diff --git a/wp-includes/version.php b/wp-includes/version.php index 5fe500b019..3bd49faad4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44476'; +$wp_version = '5.1-alpha-44477'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.