Docs: Correct return value for `is_allowed_http_origin()`.

Props kraftbj.
Fixes #35607.

git-svn-id: https://develop.svn.wordpress.org/trunk@36398 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2016-01-26 00:38:17 +00:00
parent 63afb0dcc8
commit 836ea13929
1 changed files with 2 additions and 2 deletions

View File

@ -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 );