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

Commit e162612

Browse files
author
Tarun Vijwani
authored
Add decoding to site title to allow quotes (#11334)
1 parent a8ce473 commit e162612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Assets/AssetDataRegistry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function get_core_data() {
9292
'orderStatuses' => $this->get_order_statuses(),
9393
'placeholderImgSrc' => wc_placeholder_img_src(),
9494
'productsSettings' => $this->get_products_settings(),
95-
'siteTitle' => get_bloginfo( 'name' ),
95+
'siteTitle' => wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ),
9696
'storePages' => $this->get_store_pages(),
9797
'wcAssetUrl' => plugins_url( 'assets/', WC_PLUGIN_FILE ),
9898
'wcVersion' => defined( 'WC_VERSION' ) ? WC_VERSION : '',

0 commit comments

Comments
 (0)