Skip to content

Commit ab5d83d

Browse files
committed
Merge branch 'remote-asset-list-on-demand' into fix-request-routing
2 parents b9bbb99 + 017b0d3 commit ab5d83d

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

packages/playground/remote/src/lib/worker-thread.ts

+3-12
Original file line numberDiff line numberDiff line change
@@ -285,21 +285,12 @@ try {
285285
requestHandler.documentRoot,
286286
'wordpress-remote-asset-paths'
287287
);
288-
// Use a common WP static asset to guess whether we are using a minified WP build.
289-
// This file is present in WP 6.2 - 6.5, nightly, and the current beta.
290-
const commonStaticAssetPath = joinPaths(
291-
requestHandler.documentRoot,
292-
'wp-admin/css/common.css'
293-
);
294-
295288
if (
296289
wpStaticAssetsDir !== undefined &&
297-
!primaryPhp.fileExists(remoteAssetListPath) &&
298-
!primaryPhp.fileExists(commonStaticAssetPath)
290+
!primaryPhp.fileExists(remoteAssetListPath)
299291
) {
300-
// The loaded WP release has a remote static assets dir,
301-
// and we are missing the remote asset listing and a common static file.
302-
// This looks like a minified WP build missing a remote asset listing.
292+
// The loaded WP release has a remote static assets dir
293+
// but no remote asset listing, so we need to backfill the listing.
303294
const listUrl = new URL(
304295
joinPaths(wpStaticAssetsDir, 'wordpress-remote-asset-paths'),
305296
wordPressSiteUrl

0 commit comments

Comments
 (0)