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

Fix PHP fatal error on WordPress versions < 5.0 #2736

Merged
merged 1 commit into from Jun 25, 2019

Conversation

alexsanford
Copy link
Contributor

Fixes #2735

This bug was introduced in #2658, which was created to solve the problem outlined by #2525. Calling is_block_editor on WP <5.0 caused a fatal. In this PR, we check if the method exists. If not, we assume that we are not on a block editor page.

Testing Instructions

@alexsanford alexsanford added this to the 2.1.1 milestone Jun 21, 2019
@alexsanford alexsanford self-assigned this Jun 21, 2019
@alexsanford alexsanford merged commit 9e4add8 into master Jun 25, 2019
@alexsanford alexsanford deleted the fix/block-editor-workaround-regression branch June 25, 2019 14:06
@donnapep donnapep changed the title Fix bug on WP <5.0 Fix PHP fatal error on WordPress versions < 5.0 Jun 25, 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.

PHP fatal error on WordPress versions < 5.0
3 participants