Skip to content

Commit 40dc97e

Browse files
authored
Local Environment: Fix resolve for external hosts (#73)
* Local Environment: Fix resolve for embeded videos * Update: Refactor request_host_is_external * Update: generalize the fix to catch all cases (temp fix)
1 parent 999d718 commit 40dc97e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎vendor/wp-now/src/download.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ export async function downloadMuPlugins(customMuPluginsPath = '') {
230230
'fonts.gstatic.com',
231231
);
232232
return array_merge( $hosts, $redirect_hosts );
233-
} );`
233+
} );
234+
add_filter('http_request_host_is_external', '__return_true', 20, 3 );
235+
`
234236
);
235237

236238
fs.writeFile(

0 commit comments

Comments
 (0)