File: wp-includes/https-migration.php
-
Checks whether WordPress should replace old HTTP URLs to the site with their HTTPS counterpart.
-
Filters whether WordPress should replace old HTTP URLs to the site with their HTTPS counterpart.
-
functionwp_replace_insecure_home_url()
Replaces insecure HTTP URLs to the site in the given content, if configured to do so.
-
functionwp_update_urls_to_https()
Update the ‘home’ and ‘siteurl’ option to use the HTTPS variant of their URL.
-
Updates the ‘https_migration_required’ option if needed when the given URL has been updated from HTTP to HTTPS.