WordPress.org

Make WordPress Core

Ticket #35607: 35607.diff

File 35607.diff, 927 bytes (added by kraftbj, 4 years ago)

Updates inline docs

  • src/wp-includes/http.php

     
    443443 * @since 3.4.0
    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 URL of the origin if allowed or empty string if not.
    447447 */
    448448function is_allowed_http_origin( $origin = null ) {
    449449        $origin_arg = $origin;
     
    459459         *
    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 allowed.
    463463         * @param string $origin_arg Original origin string passed into is_allowed_http_origin function.
    464464         */
    465465        return apply_filters( 'allowed_http_origin', $origin, $origin_arg );