Opened 11 months ago
Last modified 11 months ago
#7466 new defect (bug)
<span aria-hidden="true"> in <meta name="description"> breaks layout
Reported by: | takayukister | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Support Forums | Keywords: | |
Cc: |
Description
It seems the user input "→", the system wrapped it with
<span aria-hidden="true"></span>
, then it was included into
<meta name="description">
and
<meta name="og:description">
contents without being escaped.
<meta name="og:description" content="ハンガーメニューの編集方法が分からず困っています。関連ありそうな部分としては外観<span aria-hidden="true">→</span>ウィジェットに…" /> <meta name="description" content="ハンガーメニューの編集方法が分からず困っています。関連ありそうな部分としては外観<span aria-hidden="true">→</span>ウィジェットに…" />
Attachments (1)
Change History (3)
#1
@
11 months ago
This is caused by https://github.com/WordPress/wporg-mu-plugins/pull/454
However, the existing tags being output are duplicating Jetpack opengraph tags.
For example, with an English support thread:
$ curl -s 'https://wordpress.org/support/topic/ssl-question-for-wordpress-domain-w-3rd-party-hosting/' | grep 'description"' <meta property="og:description" content="Support » Installing WordPress » SSL Question for WordPress Domain w/ 3rd Party Hosting SSL Question for WordPress Domain w/ 3rd Party Hosting pfischer1 (@pfischer1) 7 hours, 58 minutes…" /> <meta name="og:description" content="I am planning to transfer a domain to WordPress.com. I still have a hosting plan elsewhere. That hosting provider charges for SSL cert. Does…" /> <meta name="description" content="I am planning to transfer a domain to WordPress.com. I still have a hosting plan elsewhere. That hosting provider charges for SSL cert. Does…" />
WordPressdotorg\Forums\Hooks::meta_description()
likely should be replaced a filter on the Jetpack opengraph data.
The header unicode arrow code should also be updated to not affect unexpected locations (ie. attributes).
#2
@
11 months ago
Filed https://github.com/WordPress/wporg-mu-plugins/issues/574 for the over-greedy replacements.
This can remain open to fix the duplicate opengraph tags.
Screenshot shows broken layout