Skip to content

Commit

Permalink
Fix special chars display in SMP (#39756)
Browse files Browse the repository at this point in the history
* Fix special chars display in SMP

The Site Management Panel may break when special chars are included in the blog's name (quotes, ampersands, etc.). This commit fixes that.

* Add ENT_QUOTES

* Changelog

* Use wp_specialchars_decode instead

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11500762006

Upstream-Ref: Automattic/jetpack@853940e
  • Loading branch information
bor0 authored and matticbot committed Oct 24, 2024
1 parent 55f8bed commit 6dbeb7c
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 86 deletions.
58 changes: 29 additions & 29 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ This is an alpha version! The changes listed here are not final.
- Make the Migrating the site task complete by default
- Only include `wp-polyfill` as a script dependency when needed.
- Sharing modal: Repurposed to only display recommended tags.
- Site Management Panel: fix site name encoding display
- Site Management Panel: Migrate to react
- Updated copies used in the plugins banner for wpcom sites plugin-install.php page.
- Updated package dependencies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function enqueue_wpcom_dashboard_widgets() {

$data = wp_json_encode(
array(
'siteName' => get_bloginfo( 'name' ),
'siteName' => wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ),
'siteDomain' => wp_parse_url( home_url(), PHP_URL_HOST ),
'siteIconUrl' => get_site_icon_url( 38 ),
)
Expand Down
Loading

0 comments on commit 6dbeb7c

Please sign in to comment.