Automattic / Automattic/jetpack
Related Posts Block: Post Title contains JSON
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
This was reported independently by both @htdat (p1HpG7-64l-p2 #comment-29591) and @StefMattana (p1HpG7-64l-p2 #comment-29596) in response to our Call for Testing. I'm not sure whether it's somehow related to #29750 (or even a duplicate), but it seems distinct enough to track it as a separate issue (until we know what's going on).
#### Steps to reproduce
1. In the block editor, start a new post, and insert a Related Posts block.
#### What I expected
The posts' titles displayed in the block preview in the editor to be actual blog post titles.
#### What happened instead
Sometimes, those titles look like they're the JSON version of e.g. blog options.
#### Screenshot / Video
Contributor guide
Research direction
Start by reproducing the issue in the block editor with a Related Posts block, then trace the Related Posts block entry point to see where post titles are loaded and displayed. Done means the preview consistently shows actual blog post titles rather than JSON; verify the behavior against the reported screenshot and reproduction steps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, wordpress
- Domain
- content, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100