WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/26/2016 12:38:17 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct return value for is_allowed_http_origin().

Props kraftbj.
Fixes #35607.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/http.php

    r36002 r36398  
    444444 *
    445445 * @param null|string $origin Origin URL. If not provided, the value of get_http_origin() is used.
    446  * @return string True if the origin is allowed. False otherwise.
     446 * @return string Origin URL if allowed, empty string if not.
    447447 */
    448448function is_allowed_http_origin( $origin = null ) {
     
    460460     * @since 3.4.0
    461461     *
    462      * @param string $origin     Result of check for allowed origin.
     462     * @param string $origin     Origin URL if allowed, empty string if not.
    463463     * @param string $origin_arg Original origin string passed into is_allowed_http_origin function.
    464464     */
Note: See TracChangeset for help on using the changeset viewer.