$localDir = dirname( $localPath );
$remoteDir = dirname( $remotePath );
// Get and register local file references
- $localFileRefs = CSSMin::getAllLocalFileReferences( $style, $localDir );
+ $localFileRefs = CSSMin::getLocalFileReferences( $style, $localDir );
foreach ( $localFileRefs as $file ) {
if ( file_exists( $file ) ) {
$this->localFileRefs[] = $file;
$this->missingLocalFileRefs[] = $file;
}
}
- return MemoizedCallable::call( 'CSSMin::remap',
- [ $style, $localDir, $remoteDir, true ] );
+ // Don't cache this call. remap() ensures data URIs embeds are up to date,
+ // and urls contain correct content hashes in their query string. (T128668)
+ return CSSMin::remap( $style, $localDir, $remoteDir, true );
}
/**