Skip to content

Commit 1cf30e7

Browse files
committed
v1.1.0: Version Bump, Prep for WP.org release
1 parent a39eab3 commit 1cf30e7

18 files changed

+305
-19
lines changed

assets/screenshot-1.png

83.1 KB
Loading

assets/screenshot-2.png

69.2 KB
Loading

assets/screenshot-3.gif

712 KB
Loading

build/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-edit-site', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '32a6ed106b36ac1be69b');
1+
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-edit-post', 'wp-edit-site', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '7222d0a86dcb84c05c6b');

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
= 1.1.0 =
2+
* Initial Release

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "viget/viget-blocks-toolkit",
3-
"description": "Simplifying Block Registration and other additional features.",
3+
"description": "Simplifying Block Registration and other block editor related features.",
44
"keywords": [
55
"wordpress",
66
"components",

includes/assets.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ function () {
2929
'vgtbt-editor-scripts',
3030
VGTBT_PLUGIN_URL . 'build/index.js',
3131
$dependencies,
32-
$asset_file['version']
32+
$asset_file['version'],
33+
[ 'in_footer' => true ]
3334
);
3435

3536
wp_register_style(

includes/helpers.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ function get_block_fields( string $block_name ): array { // phpcs:ignore
253253
$block_name = "acf/$block_name";
254254
}
255255

256+
if ( ! function_exists( 'acf_get_field_groups' ) ) {
257+
return [];
258+
}
259+
256260
$field_groups = acf_get_field_groups();
257261
$fields = [];
258262

@@ -293,6 +297,10 @@ function get_block_fields( string $block_name ): array { // phpcs:ignore
293297
* @return string
294298
*/
295299
function get_field_property( string $selector, string $property, ?string $group_id = null ): string { // phpcs:ignore
300+
if ( ! function_exists( 'acf_get_fields' ) ) {
301+
return '';
302+
}
303+
296304
if ( null !== $group_id ) {
297305
$fields = acf_get_fields( $group_id );
298306
foreach ( $fields as $field_array ) {

includes/parts-kit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
* @package VigetBlocksToolkit
66
*/
77

8-
use Viget\BlocksToolkit\Block_Registration;
8+
use Viget\BlocksToolkit\BlockRegistration;
99

1010
add_filter(
1111
'vgtpk_parts_kit_block_%',
1212
function ( string $output, string $block_name ): string {
13-
$block = Block_Registration::get_block( $block_name );
13+
$block = BlockRegistration::get_block( $block_name );
1414

1515
if ( ! $block ) {
1616
return $output;

0 commit comments

Comments
 (0)