| @@ -566,13 +566,9 @@ | ||
| 566 | 566 | } |
| 567 | 567 | |
| 568 | 568 | /** Inverse of local_path, for @import + url() resolution. */ |
| 569 | 569 | private static function path_to_url( string $path ): string { |
| 570 | - $root = defined( 'ABSPATH' ) ? rtrim( ABSPATH, '/' ) : ''; | |
| 571 | - if ( '' !== $root && 0 === strpos( $path, $root ) ) { | |
| 572 | - return rtrim( home_url(), '/' ) . str_replace( $root, '', $path ); | |
| 573 | - } | |
| 574 | - return $path; | |
| 570 | + return Asset_Combiner::path_to_url( $path ); | |
| 575 | 571 | } |
| 576 | 572 | |
| 577 | 573 | /** |
| 578 | 574 | * Move any surviving `@import` to the top of the combined file. |