Skip to content

Commit

Permalink
Upgrade to node v20.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Sep 6, 2024
1 parent 6660b2c commit e44b287
Show file tree
Hide file tree
Showing 8 changed files with 6,024 additions and 3,570 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v17.0.0
v20.17.0
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Fix phpcs errors
* Exclude vendor dir in gulp-phpcs
* Bump tested WordPress version to 6.6.1
* Upgrade to node v20.17.0

### 9.4.2: 2024-06-13

Expand Down
6 changes: 3 additions & 3 deletions inc/template-tags/acf-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function load_acf_block_from_cache( $cache_key, $block_slug, $block_path, $block
return $output;
} // end load_acf_block_from_cache

function load_acf_block( $block_path, $cache = false, $block = [], $is_preview = false, $post_id = 0 ) {
function load_acf_block( $block_path, $cache = false, $block = [], $is_preview = false, $post_id = 0 ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed
$output_callback = $cache ? 'ob_gzhandler' : null;

/**
Expand All @@ -80,7 +80,7 @@ function load_acf_block( $block_path, $cache = false, $block = [], $is_preview =
$post_type = get_post_type();

$is_not_wp_block = $post_type && 'wp_block' !== $post_type;
$is_disallowed_in_post_type = is_array( $block['post_types'] ) && ! in_array( $post_type, $block['post_types'] );
$is_disallowed_in_post_type = is_array( $block['post_types'] ) && ! in_array( $post_type, $block['post_types'] ); // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict

if ( $is_not_wp_block && $is_disallowed_in_post_type ) {
return '';
Expand Down Expand Up @@ -121,7 +121,7 @@ function acf_block_maybe_enable_cache( string $block_slug ) {
}

// Check that we have the block in defined in theme settings
$block_key = array_search( $block_slug, array_column( THEME_SETTINGS['acf_blocks'], 'name' ) );
$block_key = array_search( $block_slug, array_column( THEME_SETTINGS['acf_blocks'], 'name' ) ); // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict
if ( false === $block_key ) {
\do_action( 'qm/debug', "Block {$block_slug} settings couldn't be found in theme settings" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
return apply_filters( 'air_acf_block_maybe_enable_cache', $enable_cache, $block_slug );
Expand Down
12 changes: 6 additions & 6 deletions js/dev/front-end.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e44b287

Please sign in to comment.