Changeset 55703 for trunk/src/wp-includes/class-wp-styles.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-styles.php
r54348 r55703 394 394 */ 395 395 public function _css_href( $src, $ver, $handle ) { 396 if ( ! is_bool( $src ) && ! preg_match( '|^(https?:)?//|', $src ) && ! ( $this->content_url && 0 === strpos( $src, $this->content_url ) ) ) {396 if ( ! is_bool( $src ) && ! preg_match( '|^(https?:)?//|', $src ) && ! ( $this->content_url && str_starts_with( $src, $this->content_url ) ) ) { 397 397 $src = $this->base_url . $src; 398 398 } … … 428 428 429 429 foreach ( (array) $this->default_dirs as $test ) { 430 if ( 0 === strpos( $src, $test ) ) {430 if ( str_starts_with( $src, $test ) ) { 431 431 return true; 432 432 }
Note: See TracChangeset
for help on using the changeset viewer.