Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbenedetto committed Feb 22, 2023
1 parent 6265e31 commit 6e1a9ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admin/class-create-block-theme-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,7 @@ function make_html_media_local ( $html ) {
if ( $style ) {
preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $style, $match);
$urls = $match[0];
$template_content = $template->content;
foreach ( $urls as $url ) {
foreach ( $urls as $url ) {
if ( $this->is_absolute_url( $url ) ) {
$html = str_replace( $url, $this->make_relative_media_url( $url ), $html );
}
Expand Down

0 comments on commit 6e1a9ae

Please sign in to comment.