Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Dec 17, 2024
1 parent 34dca33 commit ba43d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@
*/
function debug_print_all_blocks() {
$blocks = \WP_Block_Type_Registry::get_instance()->get_all_registered();
$block_names = array_map(function($block) {
$block_names = array_map(function( $block ) {
return "'" . $block->name . "',";
}, $blocks);
echo '<pre>' . implode("\n", $block_names) . '</pre>';
echo '<pre>' . implode( "\n", $block_names ) . '</pre>'; // phpcs:ignore
die();
}

Expand Down

0 comments on commit ba43d4b

Please sign in to comment.