Skip to content

Commit

Permalink
Merge pull request #933 from tomusborne/release/1.7.2
Browse files Browse the repository at this point in the history
Release: 1.7.2
  • Loading branch information
tomusborne authored Mar 2, 2023
2 parents 5911030 + 902a388 commit 2ec8142
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion includes/class-enqueue-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private function enable_enqueue() {
* Check to see if we can generate CSS.
*/
public static function can_enqueue() {
return self::$has_enqueued_css;
return self::$has_enqueued_css || ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() );
}

/**
Expand Down
11 changes: 6 additions & 5 deletions includes/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,9 @@ function generateblocks_set_block_css_selectors( $selector, $name, $attributes )
* @return void
*/
function generateblocks_register_user_meta() {
$onboarding_properties = apply_filters(
$additional_properties = apply_filters(
'generateblocks_onboarding_user_meta_properties',
array(
'insert_inner_container' => array( 'type' => 'boolean' ),
)
array()
);

register_meta(
Expand All @@ -416,7 +414,10 @@ function generateblocks_register_user_meta() {
'show_in_rest' => array(
'schema' => array(
'type' => 'object',
'properties' => $onboarding_properties,
'properties' => array(
'insert_inner_container' => array( 'type' => 'boolean' ),
),
'additionalProperties' => $additional_properties,
),
),
)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generateblocks",
"version": "1.7.1",
"version": "1.7.2",
"private": true,
"description": "A small collection of lightweight WordPress blocks that can accomplish nearly anything.",
"author": "Tom Usborne",
Expand Down
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: A small collection of lightweight WordPress blocks that can accomplish nearly anything.
* Author: Tom Usborne
* Author URI: https://tomusborne.com
* Version: 1.7.1
* Version: 1.7.2
* Requires at least: 5.9
* Requires PHP: 5.6
* License: GPL2+
Expand All @@ -19,7 +19,7 @@
exit; // Exit if accessed directly.
}

define( 'GENERATEBLOCKS_VERSION', '1.7.1' );
define( 'GENERATEBLOCKS_VERSION', '1.7.2' );
define( 'GENERATEBLOCKS_DIR', plugin_dir_path( __FILE__ ) );
define( 'GENERATEBLOCKS_DIR_URL', plugin_dir_url( __FILE__ ) );

Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: blocks, gutenberg, container, headline, grid, columns, page builder, wysiw
Requires at least: 5.9
Tested up to: 6.1
Requires PHP: 5.6
Stable tag: 1.7.1
Stable tag: 1.7.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -83,6 +83,10 @@ GenerateBlocks was built to work hand-in-hand with [GeneratePress](https://gener

== Changelog ==

= 1.7.2 =
* Fix: Non-registered onboarding keys were breaking root container
* Fix: Block styling in block theme templates

= 1.7.1 =
* Tweak: Add link to documentation under legacy layout toggle
* Fix: Container width migration for old blockVersion: 1 blocks
Expand Down

0 comments on commit 2ec8142

Please sign in to comment.