Skip to content

Commit

Permalink
Fix missing paren
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Jan 10, 2024
1 parent 5d04030 commit a6b0670
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* @see https://developer.wordpress.org/reference/functions/register_block_type/
*/
function {{namespaceSnakeCase}}_{{slugSnakeCase}}_block_init() {
if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '17.5', '>=' ) {
if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '17.5', '>=' ) ) {
register_block_type_from_metadata( __DIR__ . '/build' );
return;
}
Expand Down

0 comments on commit a6b0670

Please sign in to comment.