From b00172339467889b736cf0a8d0a7bc5a502b1158 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 15 Jul 2020 12:08:32 +0000 Subject: [PATCH] Docs: Add return value description for `register_theme_directory()`. Props stevenlinx. Fixes #50665. git-svn-id: https://develop.svn.wordpress.org/trunk@48491 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/theme.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index dc4662949f..1a66ae783e 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -397,7 +397,8 @@ function get_theme_roots() { * * @param string $directory Either the full filesystem path to a theme folder * or a folder within WP_CONTENT_DIR. - * @return bool + * @return bool True if successfully registered a directory that contains themes, + * false if the directory does not exist. */ function register_theme_directory( $directory ) { global $wp_theme_directories;