Changeset 55703 for trunk/src/wp-includes/class-wp-scripts.php
- Timestamp:
- 05/02/2023 03:43:03 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-scripts.php
r54351 r55703 376 376 } 377 377 378 if ( ! preg_match( '|^(https?:)?//|', $src ) && ! ( $this->content_url && 0 === strpos( $src, $this->content_url ) ) ) {378 if ( ! preg_match( '|^(https?:)?//|', $src ) && ! ( $this->content_url && str_starts_with( $src, $this->content_url ) ) ) { 379 379 $src = $this->base_url . $src; 380 380 } … … 703 703 } 704 704 705 if ( 0 === strpos( $src, '/' . WPINC . '/js/l10n' ) ) {705 if ( str_starts_with( $src, '/' . WPINC . '/js/l10n' ) ) { 706 706 return false; 707 707 } 708 708 709 709 foreach ( (array) $this->default_dirs as $test ) { 710 if ( 0 === strpos( $src, $test ) ) {710 if ( str_starts_with( $src, $test ) ) { 711 711 return true; 712 712 }
Note: See TracChangeset
for help on using the changeset viewer.