Improve various @param docs.

See #30224.


git-svn-id: https://develop.svn.wordpress.org/trunk@30674 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2014-11-30 23:23:37 +00:00
parent ee388b9852
commit 0632a3de68
9 changed files with 47 additions and 32 deletions

View File

@@ -381,8 +381,8 @@ function get_allowed_http_origins() {
*
* @since 3.4.0
*
* @param string Origin URL. If not provided, the value of get_http_origin() is used.
* @return bool True if the origin is allowed. False otherwise.
* @param null|string $origin Origin URL. If not provided, the value of get_http_origin() is used.
* @return bool|null True if the origin is allowed. False otherwise.
*/
function is_allowed_http_origin( $origin = null ) {
$origin_arg = $origin;
@@ -441,7 +441,8 @@ function send_origin_headers() {
*
* @since 3.5.2
*
* @return mixed URL or false on failure.
* @param string $url
* @return false|string URL or false on failure.
*/
function wp_http_validate_url( $url ) {
$original_url = $url;