Skip to content

Post Excerpt Block: Remove ability to load a post within the template editor to prevent inception/crashing #33309

@annezazu

Description

@annezazu

Description

If you click "continue reading" in the Post Excerpt Block within the Query Loop block, the post itself is loaded in the editor. This eventually causes the editor to crash. This issue is similar to this previously reported bug: #30647 and might be related to this: #33269

Step-by-step reproduction instructions

  1. Enable template editing mode in the twenty twenty-one theme.
  2. Add new page.
  3. Create a new template from the sidebar and give it a name.
  4. Add the Query Loop block and select whatever configuration you desire.
  5. Add the Post Excerpt block into the loop.
  6. Click on "Continue reading" and find it opens up the post within the template editor.

Expected behaviour

Unable to click on the post link and have it load.

Actual behaviour

Able to click on the read more and see the site load within the editor.

Screenshots or screen recording (optional)

During this recording, the editor didn't crash but for most of the tests it does after the post is loaded and I try to click edit:

inception.mov

WordPress information

  • WordPress version: 5.8RC2
  • Gutenberg version: 11.0
  • Are all plugins except Gutenberg deactivated? No, WP Beta Tester plugin.
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes.

Device information

  • Device: Desktop
  • Operating system: MacOS
  • Browser: Chrome Version 89.0.4389.128 (Official Build) (x86_64)

Metadata

Metadata

Assignees

Labels

[Block] Post ExcerptAffects the Post Excerpt Block[Block] Query LoopAffects the Query Loop Block[Priority] HighUsed to indicate top priority items that need quick attention[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions