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

Block validation error when WooCommerce is not active #16

Closed
carolinan opened this issue Oct 13, 2023 · 1 comment
Closed

Block validation error when WooCommerce is not active #16

carolinan opened this issue Oct 13, 2023 · 1 comment

Comments

@carolinan
Copy link

In the block editor, there is a block validation error for the link in patterns/my-account-icon.php.
You can see this in the browser dev tools console without placing the pattern.

logger.js:17 Block validation: Block validation failed for `core/image` (Object).

Content generated by `save` function:
<figure class="wp-block-image size-full yith-wonder-my-account-login-icon"><img src="http://64.local/wp-content/themes/yith-wonder/assets/images/icons/post-author.svg" alt=""/></figure>

Content retrieved from post body:
<figure class="wp-block-image size-full yith-wonder-my-account-login-icon"><a href=""><img src="http://64.local/wp-content/themes/yith-wonder/assets/images/icons/post-author.svg" alt=""></a></figure>

I would recommend not registering patterns that require plugins unless the plugin is active.

francgrasso added a commit that referenced this issue Nov 23, 2023
@francgrasso
Copy link
Member

Thanks for your kind reporting. Issue fixed :)

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

No branches or pull requests

2 participants