Changeset 55620 for trunk/src/wp-includes/https-detection.php
- Timestamp:
- 04/04/2023 02:54:31 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/https-detection.php
r53878 r55620 209 209 } 210 210 211 // 2. Check if HTML includes the site's Windows Live Writer manifest link. 212 if ( has_action( 'wp_head', 'wlwmanifest_link' ) ) { 213 // Try both HTTPS and HTTP since the URL depends on context. 214 $pattern = preg_replace( '#^https?:(?=//)#', '', includes_url( 'wlwmanifest.xml' ) ); // See wlwmanifest_link(). 215 return false !== strpos( $html, $pattern ); 216 } 217 218 // 3. Check if HTML includes the site's REST API link. 211 // 2. Check if HTML includes the site's REST API link. 219 212 if ( has_action( 'wp_head', 'rest_output_link_wp_head' ) ) { 220 213 // Try both HTTPS and HTTP since the URL depends on context.
Note: See TracChangeset
for help on using the changeset viewer.