From 9d5ce494e4da9ad6395ff9f55c0e714ed596f2e8 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 18 Mar 2014 00:11:39 +0000 Subject: [PATCH] Clarify that unregister_default_headers() returns void in some situations. fixes #21876. git-svn-id: https://develop.svn.wordpress.org/trunk@27575 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 83ff222db9..5b62fa4ea3 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -1217,7 +1217,8 @@ function register_default_headers( $headers ) { * @since 3.0.0 * * @param string|array $header The header string id (key of array) to remove, or an array thereof. - * @return True on success, false on failure. + * @return bool|void A single header returns true on success, false on failure. + * There is currently no return value for multiple headers. */ function unregister_default_headers( $header ) { global $_wp_default_headers;