WP_Block_Patterns_Registry::register was called incorrectly
-
Hi WooCommerce,
I have a question regarding doing_it_wrong message I have in Query Monitor on my website.
It is running woocommerce v9.7.1 and I have a lot (37 messages) of:
Function WP_Block_Patterns_Registry::register was called incorrectly. Pattern content must be a string. (This message was added in version 5.5.0.)
After dumping where it comes from, I could see that it was from a whole list of Block patterns I’m not using:"woocommerce-blocks/banner"
"woocommerce/coming-soon-entire-site"
"woocommerce/coming-soon-store-only"
"woocommerce/coming-soon"
"woocommerce-blocks/content-right-with-image-left"
"woocommerce-blocks/featured-category-cover-image"
"woocommerce-blocks/featured-category-triple"
"woocommerce-blocks/product-filters"
"woocommerce-blocks/footer-large"
"woocommerce-blocks/footer-simple-menu"
"woocommerce-blocks/footer-with-3-menus"
"woocommerce-blocks/form-image-grid-content-left"
"woocommerce-blocks/header-centered-menu"
"woocommerce-blocks/header-distraction-free"
"woocommerce-blocks/header-essential"
"woocommerce-blocks/header-large"
"woocommerce-blocks/header-minimal"
"woocommerce-blocks/heading-with-three-columns-of-content-with-link"
"woocommerce-blocks/hero-product-3-split"
"woocommerce-blocks/hero-product-chessboard"
"woocommerce-blocks/hero-product-split"
"woocommerce-blocks/centered-content-with-image-below"
"woocommerce-blocks/just-arrived-full-hero"
"woocommerce/no-products-found-clear-filters"
"woocommerce/no-products-found"
"woocommerce-blocks/product-collection-3-columns"
"woocommerce-blocks/product-collection-4-columns"
"woocommerce-blocks/product-collection-5-columns"
"woocommerce-blocks/product-collection-featured-products-5-columns"
"woocommerce-blocks/product-query-product-gallery"
"woocommerce/product-search-form"
"woocommerce-blocks/related-products"
"woocommerce-blocks/social-follow-us-in-social-media"
"woocommerce-blocks/testimonials-3-columns"
"woocommerce-blocks/testimonials-single"
"woocommerce-blocks/three-columns-with-images-and-content"I’m not using using them since we are running a custom theme.
Is there a way to get rid properly from these messages, like deactivating these block patterns from the UI or whatever?
Thanks for your help.
Best
The topic ‘WP_Block_Patterns_Registry::register was called incorrectly’ is closed to new replies.