bobbingwide / written

An experimental FSE theme to replace Genesis-hm
GNU General Public License v3.0
0 stars 0 forks source link

Avoid Warning message from WooCommerce by setting fontFamily name attributes in theme.json #21

Open bobbingwide opened 3 months ago

bobbingwide commented 3 months ago

There's already a fix that's been developed for WooCommerce but this is a sensible workaround. Add the name attribute to each fontFamilies entry.

"fontFamilies": [
        {
          "fontFamily": "trebuchet ms,Arial,Helvetica,Sans-Serif",
          "slug": "trebuchet",
          "name": "Trebuchet"
        },

See https://github.com/woocommerce/woocommerce/issues/49618

Don't know what changed in WooCommerce, Gutenberg or WordPress 6.6 but this will prevent the Warning messages that array key name is not defined in /woocommerce/src/Internal/ComingSoon/ComingSoonRequestHandler.php on line 188

bobbingwide commented 3 months ago

This is also a problem in the VGC theme!