From f6cde8e3c502f313d8d4454654c891fd980cf690 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 26 Jan 2016 00:39:26 +0000 Subject: [PATCH] Docs: Correct return value for `is_allowed_http_origin()`. Props kraftbj. Fixes #35607. Built from https://develop.svn.wordpress.org/trunk@36398 git-svn-id: http://core.svn.wordpress.org/trunk@36365 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/http.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index 6e466a69aa..3109e4e35f 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -443,7 +443,7 @@ function get_allowed_http_origins() { * @since 3.4.0 * * @param null|string $origin Origin URL. If not provided, the value of get_http_origin() is used. - * @return string True if the origin is allowed. False otherwise. + * @return string Origin URL if allowed, empty string if not. */ function is_allowed_http_origin( $origin = null ) { $origin_arg = $origin; @@ -459,7 +459,7 @@ function is_allowed_http_origin( $origin = null ) { * * @since 3.4.0 * - * @param string $origin Result of check for allowed origin. + * @param string $origin Origin URL if allowed, empty string if not. * @param string $origin_arg Original origin string passed into is_allowed_http_origin function. */ return apply_filters( 'allowed_http_origin', $origin, $origin_arg ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 5910c982af..4076549022 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36397'; +$wp_version = '4.5-alpha-36398'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.