sage-acf-wp-blocks
sage-acf-wp-blocks copied to clipboard
fix for notice on $block['className']
This should fix the notice on the undefined $block['className']
` if(!empty($block['className'])): $class_name = $block['className'] . ','; else: $class_name = false; endif;
$block['classes'] = implode(' ', [$block['slug'], $class_name . 'align'.$block['align']]);
`
@MWDelaney would you mind releasing a new release to Packagist?
@mcnamee I did, feel free to use it if needed.
https://github.com/orditeck/sage9-acf-wp-blocks
Second line:
$class_name = $block['className'] . ',';
should be:
$class_name = $block['className'] . ' ';
This comma is joining added additional classes. Space is working better ;)
@MWDelaney would you mind releasing a new release to Packagist?
I plan to do this soon once I thoroughly test the newly merged PRs from today. In the meantime, if you set your composer version requirement to dev-master rather than a particular version number you'll get the latest master branch.
Any news here?