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 ) {
1158
1158
1159
1159
// Let's replace the URL in the content with the relative URL.
1160
1160
$ original_url = $ url ->searchParams ->get ( 'path ' );
1161
- $ p ->set_raw_url ( $ original_url );
1161
+ $ p ->set_url ( $ original_url, $ url );
1162
1162
}
1163
1163
1164
1164
return $ p ->get_updated_html ();
@@ -1192,7 +1192,7 @@ private static function wordpressify_static_assets_urls( $content ) {
1192
1192
$ new_url = WPURL ::parse ( $ url ->pathname , $ parsed_site_url );
1193
1193
$ new_url ->pathname = $ expected_endpoint_path ;
1194
1194
$ 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 );
1196
1196
}
1197
1197
1198
1198
return $ p ->get_updated_html ();
You can’t perform that action at this time.
0 commit comments