PluginProbe
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN / 1.4.2
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN v1.4.2
1.4.2 1.4.1 1.4.0 1.3.7 1.3.6 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.4 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 All 36 releases
← All changes | includes/class-css-combine-buffer.php +1 -5 1.4.0 → 1.4.2 View file →
@@ -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.