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

Template Loader: Fix rebase mistake. #18877

Merged
merged 2 commits into from
Dec 2, 2019

Conversation

epiqueras
Copy link
Contributor

No description provided.

@aduth
Copy link
Member

aduth commented Dec 2, 2019

Previously: #18554

}
$_wp_current_template_content = $current_template_post->post_content;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$current_template_post can be null in this scope, causing an error.

image

Fairly simple to reproduce in stock install with TwentyTwenty, Gutenberg, only "Enable Full Site Editing" experiment enabled (not the demo templates, which I assume would allow a default to be set).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@epiqueras
Copy link
Contributor Author

Thanks for the super quick review 😄 🙇‍♂️

@epiqueras
Copy link
Contributor Author

Failed tests are unrelated.

@epiqueras epiqueras merged commit 0303999 into master Dec 2, 2019
@epiqueras epiqueras deleted the fix/template-loader-rebase-mistake branch December 2, 2019 22:38
@youknowriad youknowriad added this to the Gutenberg 7.1 milestone Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants