Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSE: Front-end block context does not exist #23179

Closed
noahtallen opened this issue Jun 15, 2020 · 0 comments · Fixed by #23180
Closed

FSE: Front-end block context does not exist #23179

noahtallen opened this issue Jun 15, 2020 · 0 comments · Fixed by #23180
Assignees
Labels
[Status] In Progress Tracking issues with work in progress [Type] Regression Related to a regression in the latest release

Comments

@noahtallen
Copy link
Member

noahtallen commented Jun 15, 2020

Describe the bug
Note: This is caused by #22519. Before that commit, the issue does not occur.

In FSE blocks like post content or post title, the block context does not exist. For example, this statement is true, which returns early:

if ( ! isset( $block->context['postId'] ) ) {
return '';
}

I returned "what" there, and this is what the front end looks like:

Screen Shot 2020-06-15 at 12 29 18 PM

(Above that line is also supposed to be a post title block.)

To reproduce
Steps to reproduce the behavior:

  1. Turn on FSE
  2. Visit a page on the front end
  3. Page content does not display

Other settings:

  1. Clean environment
  2. Turned on FSE
  3. demo templates remained off
  4. Mapped a block theme
  5. Changed customizer settings to show static front page

Expected behavior
Dynamic block content should display. (Currently seems related to block context.)

Screenshots
see above

Editor version (please complete the following information):
Latest pull in the local environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress [Type] Regression Related to a regression in the latest release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant