File tree 1 file changed +3
-12
lines changed
packages/playground/remote/src/lib
1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -285,21 +285,12 @@ try {
285
285
requestHandler . documentRoot ,
286
286
'wordpress-remote-asset-paths'
287
287
) ;
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
-
295
288
if (
296
289
wpStaticAssetsDir !== undefined &&
297
- ! primaryPhp . fileExists ( remoteAssetListPath ) &&
298
- ! primaryPhp . fileExists ( commonStaticAssetPath )
290
+ ! primaryPhp . fileExists ( remoteAssetListPath )
299
291
) {
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.
303
294
const listUrl = new URL (
304
295
joinPaths ( wpStaticAssetsDir , 'wordpress-remote-asset-paths' ) ,
305
296
wordPressSiteUrl
You can’t perform that action at this time.
0 commit comments