From e451a2def53ab2e365ce8525fdc73a6f79ce4f2c Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 18 Mar 2014 00:12:15 +0000 Subject: [PATCH] Clarify that unregister_default_headers() returns void in some situations. fixes #21876. Built from https://develop.svn.wordpress.org/trunk@27575 git-svn-id: http://core.svn.wordpress.org/trunk@27418 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 83ff222db9..5b62fa4ea3 100644 --- a/wp-includes/theme.php +++ b/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;