Changeset 55703 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 05/02/2023 03:43:03 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r55669 r55703 185 185 $ver = $scripts->registered[ $handle ]->ver; 186 186 187 if ( ! preg_match( '|^(https?:)?//|', $src ) && ! ( $scripts->content_url && 0 === strpos( $src, $scripts->content_url ) ) ) {187 if ( ! preg_match( '|^(https?:)?//|', $src ) && ! ( $scripts->content_url && str_starts_with( $src, $scripts->content_url ) ) ) { 188 188 $src = $scripts->base_url . $src; 189 189 }
Note: See TracChangeset
for help on using the changeset viewer.