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: error from TPC inside FSE editor. #249

Merged
merged 1 commit into from
May 29, 2023
Merged

Conversation

preda-bogdan
Copy link
Contributor

Summary

Added a check for the site-editor screen and, did not load the TPC module as template save or import is not supported yet.
Opened a new ticket #248 to add support for saving FSE templates.

Test instructions

  1. Activate TPC
  2. Activate an FSE theme
  3. Open the FSE editor, and check that no error is shown and the TPC plugin is not loaded inside the editor.
  4. Check that for other instances (Gutenberg Post Edit, Gutenberg Page Edit, Elementor) the TPC is loaded as before.

Closes #246.

@preda-bogdan preda-bogdan linked an issue Apr 26, 2023 that may be closed by this pull request
@pirate-bot
Copy link
Collaborator

Plugin build for 339dbe8 is ready 🛎️!

@rodica-andronache
Copy link
Contributor

@preda-bogdan it's working well 👍

Copy link
Member

@HardeepAsrani HardeepAsrani left a comment

Choose a reason for hiding this comment

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

Sorry, I forgot to mark it as approved.

@@ -60,6 +60,12 @@ public function register_block() {
return;
}

// Don't load on site editor. Until FSE support in TPC is added.
// We can remove this check once Codeinwp/templates-patterns-collection/issues/248 is implemented.
if ( $screen->id === 'site-editor' ) {
Copy link
Member

Choose a reason for hiding this comment

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

Looks good.

@preda-bogdan preda-bogdan merged commit f85bd83 into development May 29, 2023
@preda-bogdan preda-bogdan deleted the fix/fse_error branch May 29, 2023 14:10
@pirate-bot
Copy link
Collaborator

🎉 This PR is included in version 1.1.39 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Indicate that an issue has been resolved and released in a particular version of the product.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error Notice on Full Site Editing editor
4 participants