File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plugins/static-files-editor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1158,7 +1158,7 @@ private static function unwordpressify_static_assets_urls( $content ) {
11581158
11591159 // Let's replace the URL in the content with the relative URL.
11601160 $ original_url = $ url ->searchParams ->get ( 'path ' );
1161- $ p ->set_raw_url ( $ original_url );
1161+ $ p ->set_url ( $ original_url, $ url );
11621162 }
11631163
11641164 return $ p ->get_updated_html ();
@@ -1192,7 +1192,7 @@ private static function wordpressify_static_assets_urls( $content ) {
11921192 $ new_url = WPURL ::parse ( $ url ->pathname , $ parsed_site_url );
11931193 $ new_url ->pathname = $ expected_endpoint_path ;
11941194 $ new_url ->searchParams ->set ( 'path ' , $ p ->get_raw_url () );
1195- $ p ->set_raw_url ( $ new_url ->__toString () );
1195+ $ p ->set_url ( $ new_url ->__toString (), $ new_url );
11961196 }
11971197
11981198 return $ p ->get_updated_html ();
You can’t perform that action at this time.
0 commit comments