Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-includes
/
js
/
File Content:
https-detection.php
<?php /** * HTTPS detection functions. * * @package WordPress * @since 5.7.0 */ /** * Checks whether the website is using HTTPS. * * This is based on whether both the home and site URL are using HTTPS. * * @since 5.7.0 * @see wp_is_home_url_using_https() * @see wp_is_site_url_using_https() * * @return bool True if using HTTPS, false otherwise. */ function wp_is_using_https() { if ( ! wp_is_home_url_using_https() ) { return false; } return wp_is_site_url_using_https(); } /** * Checks whether the current site URL is using HTTPS. * * @since 5.7.0 * @see home_url() * * @return bool True if using HTTPS, false otherwise. */ function wp_is_home_url_using_https() { return 'https' === wp_parse_url( home_url(), PHP_URL_SCHEME ); } /** * Checks whether the current site's URL where WordPress is stored is using HTTPS. * * This checks the URL where WordPress application files (e.g. wp-blog-header.php or the wp-admin/ folder) are * accessible. * * @since 5.7.0 * @see site_url() * * @return bool True if using HTTPS, false otherwise. */ function wp_is_site_url_using_https() { // Use direct option access for 'siteurl' and manually run the 'site_url' // filter because `site_url()` will adjust the scheme based on what the // current request is using. /** This filter is documented in wp-includes/link-template.php */ $site_url = apply_filters( 'site_url', get_option( 'siteurl' ), '', null, null ); return 'https' === wp_parse_url( $site_url, PHP_URL_SCHEME ); } /** * Checks whether HTTPS is supported for the server and domain. * * @since 5.7.0 * * @return bool True if HTTPS is supported, false otherwise. */ 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 ); } /** * Runs a remote HTTPS request to detect whether HTTPS supported, and stores potential errors. * * This internal function is called by a regular Cron hook to ensure HTTPS support is detected and maintained. * * @since 5.7.0 * @access private */ function wp_update_https_detection_errors() { /** * Short-circuits the process of detecting errors related to HTTPS support. * * Returning a `WP_Error` from the filter will effectively short-circuit the default logic of trying a remote * request to the site over HTTPS, storing the errors array from the returned `WP_Error` instead. * * @since 5.7.0 * * @param null|WP_Error $pre Error object to short-circuit detection, * or null to continue with the default behavior. */ $support_errors = apply_filters( 'pre_wp_update_https_detection_errors', null ); if ( is_wp_error( $support_errors ) ) { update_option( 'https_detection_errors', $support_errors->errors ); return; } $support_errors = new WP_Error(); $response = wp_remote_request( home_url( '/', 'https' ), array( 'headers' => array( 'Cache-Control' => 'no-cache', ), 'sslverify' => true, ) ); if ( is_wp_error( $response ) ) { $unverified_response = wp_remote_request( home_url( '/', 'https' ), array( 'headers' => array( 'Cache-Control' => 'no-cache', ), 'sslverify' => false, ) ); if ( is_wp_error( $unverified_response ) ) { $support_errors->add( 'https_request_failed', __( 'HTTPS request failed.' ) ); } else { $support_errors->add( 'ssl_verification_failed', __( 'SSL verification failed.' ) ); } $response = $unverified_response; } if ( ! is_wp_error( $response ) ) { if ( 200 !== wp_remote_retrieve_response_code( $response ) ) { $support_errors->add( 'bad_response_code', wp_remote_retrieve_response_message( $response ) ); } elseif ( false === wp_is_local_html_output( wp_remote_retrieve_body( $response ) ) ) { $support_errors->add( 'bad_response_source', __( 'It looks like the response did not come from this site.' ) ); } } update_option( 'https_detection_errors', $support_errors->errors ); } /** * Schedules the Cron hook for detecting HTTPS support. * * @since 5.7.0 * @access private */ function wp_schedule_https_detection() { if ( wp_installing() ) { return; } if ( ! wp_next_scheduled( 'wp_https_detection' ) ) { wp_schedule_event( time(), 'twicedaily', 'wp_https_detection' ); } } /** * Disables SSL verification if the 'cron_request' arguments include an HTTPS URL. * * This prevents an issue if HTTPS breaks, where there would be a failed attempt to verify HTTPS. * * @since 5.7.0 * @access private * * @param array $request The Cron request arguments. * @return array $request The filtered Cron request arguments. */ function wp_cron_conditionally_prevent_sslverify( $request ) { if ( 'https' === wp_parse_url( $request['url'], PHP_URL_SCHEME ) ) { $request['args']['sslverify'] = false; } return $request; } /** * Checks whether a given HTML string is likely an output from this WordPress site. * * This function attempts to check for various common WordPress patterns whether they are included in the HTML string. * Since any of these actions may be disabled through third-party code, this function may also return null to indicate * that it was not possible to determine ownership. * * @since 5.7.0 * @access private * * @param string $html Full HTML output string, e.g. from a HTTP response. * @return bool|null True/false for whether HTML was generated by this site, null if unable to determine. */ function wp_is_local_html_output( $html ) { // 1. Check if HTML includes the site's Really Simple Discovery link. if ( has_action( 'wp_head', 'rsd_link' ) ) { $pattern = preg_replace( '#^https?:(?=//)#', '', esc_url( site_url( 'xmlrpc.php?rsd', 'rpc' ) ) ); // See rsd_link(). return false !== strpos( $html, $pattern ); } // 2. Check if HTML includes the site's Windows Live Writer manifest link. if ( has_action( 'wp_head', 'wlwmanifest_link' ) ) { // Try both HTTPS and HTTP since the URL depends on context. $pattern = preg_replace( '#^https?:(?=//)#', '', includes_url( 'wlwmanifest.xml' ) ); // See wlwmanifest_link(). return false !== strpos( $html, $pattern ); } // 3. Check if HTML includes the site's REST API link. if ( has_action( 'wp_head', 'rest_output_link_wp_head' ) ) { // Try both HTTPS and HTTP since the URL depends on context. $pattern = preg_replace( '#^https?:(?=//)#', '', esc_url( get_rest_url() ) ); // See rest_output_link_wp_head(). return false !== strpos( $html, $pattern ); } // Otherwise the result cannot be determined. return null; }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
codemirror
---
0755
crop
---
0755
dist
---
0755
imgareaselect
---
0755
jcrop
---
0755
jquery
---
0755
mediaelement
---
0755
plupload
---
0755
swfupload
---
0755
thickbox
---
0755
tinymce
---
0755
admin-bar.js
10762 bytes
0644
admin-bar.min.js
3556 bytes
0644
autosave.js
22518 bytes
0644
autosave.min.js
5847 bytes
0644
backbone.js
77794 bytes
0604
backbone.min.js
23818 bytes
0644
class-wp-theme.php
51601 bytes
0644
clipboard.js
29493 bytes
0644
clipboard.min.js
10419 bytes
0644
colorpicker.js
29083 bytes
0604
colorpicker.min.js
16562 bytes
0644
comment-reply.js
12457 bytes
0644
comment-reply.min.js
2984 bytes
0644
customize-base.js
25766 bytes
0644
customize-base.min.js
7858 bytes
0644
customize-loader.js
7904 bytes
0644
customize-loader.min.js
3553 bytes
0644
customize-models.js
6821 bytes
0644
customize-models.min.js
3693 bytes
0644
customize-preview-nav-menus.js
15024 bytes
0644
customize-preview-nav-menus.min.js
5038 bytes
0644
customize-preview-widgets.js
23253 bytes
0644
customize-preview-widgets.min.js
7824 bytes
0644
customize-preview.js
27960 bytes
0644
customize-preview.min.js
10758 bytes
0644
customize-selective-refresh.js
33332 bytes
0644
customize-selective-refresh.min.js
10693 bytes
0644
customize-views.js
5065 bytes
0604
customize-views.min.js
2451 bytes
0644
heartbeat.js
23154 bytes
0644
heartbeat.min.js
5883 bytes
0644
hoverintent-js.min.js
1718 bytes
0604
https-detection-20260622230655.php
6871 bytes
0644
https-detection.php
6871 bytes
0644
https-migration-20260621215951.php
4730 bytes
0644
https-migration-20260621222700-20260622150413.php
4730 bytes
0644
https-migration-20260621222700.php
4730 bytes
0644
https-migration-20260622015718.php
4730 bytes
0644
https-migration-20260622145328.php
4730 bytes
0644
https-migration-20260622165410.php
4730 bytes
0644
https-migration-20260622204948.php
4730 bytes
0644
https-migration-20260622211332.php
4730 bytes
0644
https-migration-20260622230538.php
4730 bytes
0644
https-migration.php
4730 bytes
0644
imagesloaded.min.js
5629 bytes
0644
json2.js
18422 bytes
0604
json2.min.js
3153 bytes
0644
masonry.min.js
24138 bytes
0644
mce-view.js
26059 bytes
0644
mce-view.min.js
9883 bytes
0644
media-audiovideo.js
27553 bytes
0644
media-audiovideo.min.js
12921 bytes
0644
media-editor.js
29119 bytes
0644
media-editor.min.js
10909 bytes
0644
media-grid.js
29532 bytes
0644
media-grid.min.js
14165 bytes
0644
media-models.js
45137 bytes
0644
media-models.min.js
13811 bytes
0644
media-views.js
267734 bytes
0644
media-views.min.js
107493 bytes
0644
quicktags.js
22615 bytes
0604
quicktags.min.js
11149 bytes
0644
swfobject.js
10231 bytes
0604
tw-sack.js
4969 bytes
0604
tw-sack.min.js
3299 bytes
0604
twemoji.js
28010 bytes
0644
twemoji.min.js
11307 bytes
0644
underscore.min.js
16045 bytes
0644
utils.js
4665 bytes
0604
utils.min.js
1864 bytes
0644
wp-ajax-response.js
3214 bytes
0644
wp-ajax-response.min.js
2098 bytes
0644
wp-api.js
46983 bytes
0644
wp-api.min.js
14687 bytes
0644
wp-auth-check.js
4225 bytes
0644
wp-auth-check.min.js
1674 bytes
0644
wp-backbone.js
15240 bytes
0644
wp-backbone.min.js
3037 bytes
0644
wp-custom-header.js
10447 bytes
0644
wp-custom-header.min.js
4442 bytes
0644
wp-embed-template.js
6392 bytes
0644
wp-embed-template.min.js
3154 bytes
0644
wp-embed.js
3414 bytes
0644
wp-embed.min.js
1478 bytes
0644
wp-emoji-loader.js
6953 bytes
0644
wp-emoji-loader.min.js
1852 bytes
0644
wp-emoji-release.min.js
14229 bytes
0644
wp-emoji.js
8989 bytes
0604
wp-emoji.min.js
2873 bytes
0644
wp-list-revisions.js
970 bytes
0604
wp-list-revisions.min.js
597 bytes
0644
wp-lists.js
25315 bytes
0644
wp-lists.min.js
7434 bytes
0644
wp-sanitize.js
1350 bytes
0604
wp-sanitize.min.js
458 bytes
0644
wp-util.js
4113 bytes
0644
wp-util.min.js
1169 bytes
0644
wpdialog.js
560 bytes
0604
wpdialog.min.js
272 bytes
0604
wplink.js
21160 bytes
0644
wplink.min.js
11283 bytes
0644
zxcvbn-async.js
821 bytes
0604
zxcvbn-async.min.js
351 bytes
0644
zxcvbn.min.js
822237 bytes
0604
N4ST4R_ID | Naxtarrr