GC_Http::validate_redirects()
最后更新于:2021-12-01 11:13:32
GC_( string$location)Validate redirected URLs.
参数
- $location
-
(string) (Required) URL to redirect to.
源文件
文件: gc-includes/class-http.php
public static function validate_redirects( $location ) {
if ( ! gc_http_validate_url( $location ) ) {
throw new Requests_Exception( __( 'A valid URL was not provided.' ), 'gc_http.redirect_failed_validation' );
}
}