Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Remove esc_url() on self generated link to edit the Mini Cart templat…
Browse files Browse the repository at this point in the history
…e since it gets escaped in JS (#9348)
  • Loading branch information
tjcafferkey authored May 4, 2023
1 parent 75ad404 commit a87080c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/BlockTypes/MiniCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,12 @@ protected function enqueue_data( array $attributes = [] ) {
);
}

$template_part_edit_uri = esc_url(
add_query_arg(
array(
'postId' => sprintf( '%s//%s', $theme_slug, 'mini-cart' ),
'postType' => 'wp_template_part',
),
$site_editor_uri
)
$template_part_edit_uri = add_query_arg(
array(
'postId' => sprintf( '%s//%s', $theme_slug, 'mini-cart' ),
'postType' => 'wp_template_part',
),
$site_editor_uri
);
}

Expand Down

0 comments on commit a87080c

Please sign in to comment.