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

Blockbase: move social-navigation.php requirement inside of class_exists check #5654

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

laurelfulford
Copy link
Contributor

Changes proposed in this Pull Request:

This PR moves the require get_template_directory() . '/inc/social-navigation.php'; inside of the same if ( class_exists( 'WP_Theme_JSON_Resolver_Gutenberg' ) as the other files that use this class, to make sure it exists before the code tries to load it.

Related issue(s):

Closes #5653

…heme_JSON_Resolver_Gutenberg to avoid errors.
Copy link
Member

@scruffian scruffian left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for fixing!

@scruffian scruffian merged commit 7b5de41 into trunk Mar 11, 2022
@scruffian scruffian deleted the blockbase/fix-class-not-found branch March 11, 2022 08:27
@laurelfulford
Copy link
Contributor Author

Thanks for the review, @scruffian! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blockbase: fatal error on self-hosted site not running Gutenberg plugin
2 participants