Changeset 56021 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 06/25/2023 10:48:28 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r55990 r56021 4464 4464 * starting with /, # or ?, or a PHP file). 4465 4465 */ 4466 if ( strpos( $url, ':' ) === false && ! in_array( $url[0], array( '/', '#', '?' ), true ) && 4467 ! preg_match( '/^[a-z0-9-]+?\.php/i', $url ) ) { 4466 if ( ! str_contains( $url, ':' ) && ! in_array( $url[0], array( '/', '#', '?' ), true ) && 4467 ! preg_match( '/^[a-z0-9-]+?\.php/i', $url ) 4468 ) { 4468 4469 $url = 'http://' . $url; 4469 4470 }
Note: See TracChangeset
for help on using the changeset viewer.