Skip to content

Commit

Permalink
Use template strings
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jul 26, 2018
1 parent 3246050 commit bd0c215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/blocks/src/api/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export const hasChildBlocks = ( blockName ) => {
* @param {Object} styleVariation Object containing `name` which is the class name applied to the block and `label` which identifies the variation to the user.
*/
export const registerBlockStyle = ( blockName, styleVariation ) => {
addFilter( 'blocks.registerBlockType', blockName + '/' + styleVariation.name, ( settings, name ) => {
addFilter( 'blocks.registerBlockType', `${ blockName }/${ styleVariation.name }`, ( settings, name ) => {
if ( blockName !== name ) {
return settings;
}
Expand Down

0 comments on commit bd0c215

Please sign in to comment.