wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
url_is_accessable_via_ssl is deprecated since version 4.0.0!
url_is_accessable_via_ssl › WordPress Function
Da2.5.0
Deprecato4.0.0
› url_is_accessable_via_ssl ( $url )
Parametri: |
|
Ritorna: |
|
Definito a: |
|
Codex: |
Determines if the URL can be accessed over SSL.
Determines if the URL can be accessed over SSL by using the WordPress HTTP API to access the URL using https as the scheme.Funzioni correlate: rest_stabilize_value, wp_widgets_access_body_class, _access_denied_splash, file_is_displayable_image
Sorgenti
function url_is_accessable_via_ssl( $url ) { _deprecated_function( __FUNCTION__, '4.0.0' ); $response = wp_remote_get( set_url_scheme( $url, 'https' ) ); if ( !is_wp_error( $response ) ) { $status = wp_remote_retrieve_response_code( $response ); if ( 200 == $status || 401 == $status ) { return true; } } return false; }