Changeset 55988 for trunk/src/wp-includes/https-detection.php
- Timestamp:
- 06/22/2023 02:34:56 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/https-detection.php
r55620 r55988 206 206 if ( has_action( 'wp_head', 'rsd_link' ) ) { 207 207 $pattern = preg_replace( '#^https?:(?=//)#', '', esc_url( site_url( 'xmlrpc.php?rsd', 'rpc' ) ) ); // See rsd_link(). 208 return false !== strpos( $html, $pattern );208 return str_contains( $html, $pattern ); 209 209 } 210 210 … … 213 213 // Try both HTTPS and HTTP since the URL depends on context. 214 214 $pattern = preg_replace( '#^https?:(?=//)#', '', esc_url( get_rest_url() ) ); // See rest_output_link_wp_head(). 215 return false !== strpos( $html, $pattern );215 return str_contains( $html, $pattern ); 216 216 } 217 217
Note: See TracChangeset
for help on using the changeset viewer.