Skip to content

Template Loader: Fix rebase mistake.#18877

Merged
epiqueras merged 2 commits into
masterfrom
fix/template-loader-rebase-mistake
Dec 2, 2019
Merged

Template Loader: Fix rebase mistake.#18877
epiqueras merged 2 commits into
masterfrom
fix/template-loader-rebase-mistake

Conversation

@epiqueras

Copy link
Copy Markdown
Contributor

No description provided.

@aduth

aduth commented Dec 2, 2019

Copy link
Copy Markdown
Member

Previously: #18554

Comment thread lib/template-loader.php Outdated

$_wp_current_template_content = $current_template_post->post_content;
}
$_wp_current_template_content = $current_template_post->post_content;

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Thanks for the super quick review 😄 🙇‍♂️

@epiqueras

Copy link
Copy Markdown
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