wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_is_https_supported › WordPress Function
Seit5.7.0
Veraltetn/v
› wp_is_https_supported ( Keine Parameter )
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Checks whether HTTPS is supported for the server and domain.
Ähnliche Funktionen: wp_http_supports, wp_timezone_supported, post_type_supports, wp_list_sort, wp_register_position_support
Quellcode
function wp_is_https_supported() { $https_detection_errors = get_option( 'https_detection_errors' ); // If option has never been set by the Cron hook before, run it on-the-fly as fallback. if ( false === $https_detection_errors ) { wp_update_https_detection_errors(); $https_detection_errors = get_option( 'https_detection_errors' ); } // If there are no detection errors, HTTPS is supported. return empty( $https_detection_errors ); }