Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-includes
/
File Content:
https-migration.php
<?php /** * HTTPS migration functions. * * @package WordPress * @since 5.7.0 */ /** * Checks whether WordPress should replace old HTTP URLs to the site with their HTTPS counterpart. * * If a WordPress site had its URL changed from HTTP to HTTPS, by default this will return `true`, causing WordPress to * add frontend filters to replace insecure site URLs that may be present in older database content. The * {@see 'wp_should_replace_insecure_home_url'} filter can be used to modify that behavior. * * @since 5.7.0 * * @return bool True if insecure URLs should replaced, false otherwise. */ function wp_should_replace_insecure_home_url() { $should_replace_insecure_home_url = wp_is_using_https() && get_option( 'https_migration_required' ) // For automatic replacement, both 'home' and 'siteurl' need to not only use HTTPS, they also need to be using // the same domain. && wp_parse_url( home_url(), PHP_URL_HOST ) === wp_parse_url( site_url(), PHP_URL_HOST ); /** * Filters whether WordPress should replace old HTTP URLs to the site with their HTTPS counterpart. * * If a WordPress site had its URL changed from HTTP to HTTPS, by default this will return `true`. This filter can * be used to disable that behavior, e.g. after having replaced URLs manually in the database. * * @since 5.7.0 * * @param bool $should_replace_insecure_home_url Whether insecure HTTP URLs to the site should be replaced. */ return apply_filters( 'wp_should_replace_insecure_home_url', $should_replace_insecure_home_url ); } /** * Replaces insecure HTTP URLs to the site in the given content, if configured to do so. * * This function replaces all occurrences of the HTTP version of the site's URL with its HTTPS counterpart, if * determined via {@see wp_should_replace_insecure_home_url()}. * * @since 5.7.0 * * @param string $content Content to replace URLs in. * @return string Filtered content. */ function wp_replace_insecure_home_url( $content ) { if ( ! wp_should_replace_insecure_home_url() ) { return $content; } $https_url = home_url( '', 'https' ); $http_url = str_replace( 'https://', 'http://', $https_url ); // Also replace potentially escaped URL. $escaped_https_url = str_replace( '/', '\/', $https_url ); $escaped_http_url = str_replace( '/', '\/', $http_url ); return str_replace( array( $http_url, $escaped_http_url, ), array( $https_url, $escaped_https_url, ), $content ); } /** * Update the 'home' and 'siteurl' option to use the HTTPS variant of their URL. * * If this update does not result in WordPress recognizing that the site is now using HTTPS (e.g. due to constants * overriding the URLs used), the changes will be reverted. In such a case the function will return false. * * @since 5.7.0 * * @return bool True on success, false on failure. */ function wp_update_urls_to_https() { // Get current URL options. $orig_home = get_option( 'home' ); $orig_siteurl = get_option( 'siteurl' ); // Get current URL options, replacing HTTP with HTTPS. $home = str_replace( 'http://', 'https://', $orig_home ); $siteurl = str_replace( 'http://', 'https://', $orig_siteurl ); // Update the options. update_option( 'home', $home ); update_option( 'siteurl', $siteurl ); if ( ! wp_is_using_https() ) { // If this did not result in the site recognizing HTTPS as being used, // revert the change and return false. update_option( 'home', $orig_home ); update_option( 'siteurl', $orig_siteurl ); return false; } // Otherwise the URLs were successfully changed to use HTTPS. return true; } /** * Updates the 'https_migration_required' option if needed when the given URL has been updated from HTTP to HTTPS. * * If this is a fresh site, a migration will not be required, so the option will be set as `false`. * * This is hooked into the {@see 'update_option_home'} action. * * @since 5.7.0 * @access private * * @param mixed $old_url Previous value of the URL option. * @param mixed $new_url New value of the URL option. */ function wp_update_https_migration_required( $old_url, $new_url ) { // Do nothing if WordPress is being installed. if ( wp_installing() ) { return; } // Delete/reset the option if the new URL is not the HTTPS version of the old URL. if ( untrailingslashit( (string) $old_url ) !== str_replace( 'https://', 'http://', untrailingslashit( (string) $new_url ) ) ) { delete_option( 'https_migration_required' ); return; } // If this is a fresh site, there is no content to migrate, so do not require migration. $https_migration_required = get_option( 'fresh_site' ) ? false : true; update_option( 'https_migration_required', $https_migration_required ); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
ID3
---
0755
IXR
---
0755
PHPMailer
---
0755
Requests
---
0755
SimplePie
---
0755
Text
---
0755
assets
---
0755
block-supports
---
0755
blocks
---
0755
certificates
---
0755
css
---
0755
customize
---
0755
fonts
---
0755
images
---
0755
js
---
0755
pomo
---
0755
random_compat
---
0755
rest-api
---
0755
sitemaps
---
0755
sodium_compat
---
0755
theme-compat
---
0755
widgets
---
0755
418.php
478 bytes
0644
cache-compat-20260621150841.php
1046 bytes
0644
canonical.php
33085 bytes
0644
category-template.php
55563 bytes
0644
category.php
12712 bytes
0644
class-json-20260621174458.php
43441 bytes
0644
class-pop3.php
20837 bytes
0644
class-walker-category-dropdown.php
2133 bytes
0644
class-walker-comment-20260621174554.php
13733 bytes
0644
class-walker-page-dropdown.php
2299 bytes
0604
class-wp-ajax-response.php
5240 bytes
0644
class-wp-block-pattern-categories-registry.php
4209 bytes
0644
class-wp-block-styles-registry.php
4722 bytes
0644
class-wp-block-supports.php
5278 bytes
0644
class-wp-block-type-registry.php
5030 bytes
0644
class-wp-block-type.php
8612 bytes
0644
class-wp-customize-nav-menus.php
57019 bytes
0644
class-wp-customize-setting-20260621163115.php
29766 bytes
0644
class-wp-dependency-20260621174423.php
2511 bytes
0644
class-wp-embed-20260621202312.php
15791 bytes
0644
class-wp-http-curl-20260621163049.php
12345 bytes
0644
class-wp-http-streams-20260621162623.php
16117 bytes
0644
class-wp-locale-switcher.php
5022 bytes
0604
class-wp-locale.php
13982 bytes
0644
class-wp-network-20260621174516.php
12379 bytes
0644
class-wp-oembed-controller-20260621150705.php
6793 bytes
0644
class-wp-oembed-controller.php
6793 bytes
0644
class-wp-paused-extensions-storage.php
4923 bytes
0644
class-wp-post-20260621174416.php
6423 bytes
0644
class-wp-post-type.php
20820 bytes
0644
class-wp-recovery-mode-cookie-service.php
6459 bytes
0644
class-wp-recovery-mode-email-service.php
10660 bytes
0644
class-wp-recovery-mode-key-service.php
4270 bytes
0644
class-wp-recovery-mode-link-service.php
3401 bytes
0644
class-wp-recovery-mode.php
11378 bytes
0644
class-wp-session-tokens.php
7425 bytes
0644
class-wp-simplepie-sanitize-kses.php
1775 bytes
0644
class-wp-site-query.php
29308 bytes
0644
class-wp-site.php
7428 bytes
0644
class-wp-tax-query.php
19437 bytes
0644
class-wp-theme.php
51601 bytes
0644
class-wp-user-meta-session-tokens.php
2990 bytes
0604
class-wp-widget-calendar.php
2871 bytes
0644
class-wp-widget-factory.php
2620 bytes
0604
default-filters.php
28326 bytes
0644
embed-20260621112615.php
48140 bytes
0644
feed-rdf.php
2668 bytes
0604
https-detection.php
6871 bytes
0644
https-migration-20260621215951-20260624045532.php
4730 bytes
0644
https-migration-20260621215951.php
4730 bytes
0644
https-migration-20260621222700-20260623064903.php
4730 bytes
0644
https-migration-20260621222700.php
4730 bytes
0644
https-migration-20260622015718.php
4730 bytes
0644
https-migration-20260622015741.php
4730 bytes
0644
https-migration-20260622015815-20260623170012.php
4730 bytes
0644
https-migration-20260622015815.php
4730 bytes
0644
https-migration-20260622145328-20260624062526.php
4730 bytes
0644
https-migration-20260622145328.php
4730 bytes
0644
https-migration-20260622153559.php
4730 bytes
0644
https-migration-20260622165357.php
4730 bytes
0644
https-migration-20260622165410-20260623165821.php
4730 bytes
0644
https-migration-20260622165410.php
4730 bytes
0644
https-migration-20260622204948-20260624000907.php
4730 bytes
0644
https-migration-20260622204948.php
4730 bytes
0644
https-migration-20260622211332.php
4730 bytes
0644
https-migration-20260623031713.php
4730 bytes
0644
https-migration.php
4730 bytes
0644
kses.php
63459 bytes
0644
l10n.php
56753 bytes
0644
load.php
49277 bytes
0644
locale.php
162 bytes
0604
media-template.php
60421 bytes
0644
media.php
173557 bytes
0644
ms-blogs.php
25174 bytes
0644
ms-default-filters.php
6496 bytes
0644
ms-files.php
2641 bytes
0604
ms-site.php
43512 bytes
0644
nav-menu-template.php
23296 bytes
0644
post-formats.php
7079 bytes
0644
post-thumbnail-template.php
9353 bytes
0644
query-20260621163150.php
35787 bytes
0644
revision.php
22027 bytes
0644
shortcode.php
697 bytes
0644
taxonomy.php
165888 bytes
0644
template-loader-20260621163152.php
3350 bytes
0644
vars.php
5816 bytes
0644
wlwmanifest.xml
1045 bytes
0604
N4ST4R_ID | Naxtarrr