Skip to content

Commit b3bc700

Browse files
committed
Static files editor: Call set_url instead of the removed set_raw_url
1 parent 85d6053 commit b3bc700

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/static-files-editor/plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)