Explorar o código

Button 2: Add class for default image block styles, so it doesn't say 'null'.

Laurel Fulford %!s(int64=6) %!d(string=hai) anos
pai
achega
cf200d6e08
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      button-2/assets/js/block-variations.js

+ 1 - 0
button-2/assets/js/block-variations.js

@@ -9,6 +9,7 @@
 
 wp.blocks.registerBlockStyle( 'core/image', {
 	isDefault: true,
+	name: 'default', // Class will be turned into '.is-style-default', though no styles needed.
 	label: 'Default'
 } );