is_ssl()
Determines if SSL is used.
Return
(bool) True if SSL, otherwise false.
Source
File: wp-includes/load.php
function is_ssl() {
if ( isset( $_SERVER['HTTPS'] ) ) {
if ( 'on' == strtolower( $_SERVER['HTTPS'] ) ) {
return true;
}
if ( '1' == $_SERVER['HTTPS'] ) {
return true;
}
} elseif ( isset($_SERVER['SERVER_PORT'] ) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
return true;
}
return false;
}
Related
Used By
Used By | Description |
---|---|
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_https_status() |
Tests if the site is serving content over HTTPS. |
wp-admin/includes/class-wp-debug-data.php: WP_Debug_Data::debug_data() |
Static function for generating site debug data when required. |
wp-includes/class-wp-recovery-mode-cookie-service.php: WP_Recovery_Mode_Cookie_Service::set_cookie() |
Sets the recovery mode cookie. |
wp-includes/user.php: wp_is_application_passwords_supported() |
Checks if Application Passwords is supported. |
wp-includes/class-wp-recovery-mode.php: WP_Recovery_Mode::redirect_protected() |
Redirects the current request to allow recovering multiple errors in one go. |
wp-includes/general-template.php: wp_login_form() |
Provides a simple login form for use anywhere within WordPress. |
wp-includes/pluggable.php: wp_parse_auth_cookie() |
Parses a cookie into its components. |
wp-includes/pluggable.php: wp_set_auth_cookie() |
Sets the authentication cookies based on user ID. |
wp-includes/pluggable.php: auth_redirect() |
Checks if a user is logged in, if not it redirects them to the login page. |
wp-includes/admin-bar.php: wp_admin_bar_customize_menu() |
Adds the “Customize” link to the Toolbar. |
wp-includes/class-wp-admin-bar.php: WP_Admin_Bar::__get() | |
wp-includes/ms-load.php: ms_load_current_site_and_network() |
Identifies the network and site of a requested domain and path and populates the corresponding network and site global objects as part of the multisite bootstrap process. |
wp-includes/link-template.php: get_avatar_data() |
Retrieves default data about the avatar. |
wp-includes/link-template.php: network_home_url() |
Retrieves the home URL for the current network. |
wp-includes/link-template.php: set_url_scheme() |
Sets the scheme for a URL. |
wp-includes/link-template.php: get_home_url() |
Retrieves the URL for a given site where the front end is accessible. |
wp-includes/user.php: wp_signon() |
Authenticates and logs a user in with ‘remember’ capability. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::get_allowed_urls() |
Gets URLs allowed to be previewed. |
wp-includes/canonical.php: redirect_canonical() |
Redirects incoming links to the proper URL based on the site url. |
wp-includes/rest-api.php: get_rest_url() |
Retrieves the URL to a REST endpoint on a site. |
wp-includes/post.php: wp_get_attachment_url() |
Retrieves the URL for an attachment. |
wp-includes/ms-functions.php: filter_SSL() |
Formats a URL to use https. |
wp-includes/functions.php: wp_auth_check_html() |
Outputs the HTML that shows the wp-login dialog when the user is no longer logged in. |
wp-includes/functions.php: wp_guess_url() |
Guesses the URL for the site. |
wp-admin/includes/plugin-install.php: install_plugin_information() |
Displays plugin information in dialog box form. |
wp-admin/includes/ajax-actions.php: wp_ajax_parse_embed() |
Apply [embed] Ajax handlers to a string. |
wp-admin/includes/dashboard.php: wp_dashboard_browser_nag() |
Displays the browser update nag. |
Changelog
Version | Description |
---|---|
4.6.0 | Moved from functions.php to load.php. |
2.6.0 | Introduced. |