Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
darylldoyle committed Feb 6, 2025
1 parent 2551d3e commit eceaa18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions themes/10up-block-theme/includes/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ function register_theme_blocks() {
}

foreach ( $block_json_files as $filename ) {
$block_folder = dirname( $filename );
$block = register_block_type_from_metadata( $block_folder );
$block_folder = dirname( $filename );
$block = register_block_type_from_metadata( $block_folder );

if ( ! $block ) {
continue;
Expand Down
2 changes: 1 addition & 1 deletion themes/10up-block-theme/includes/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function register_all_icons() {
return;
}

$icons = array_map(
$icons = array_map(
function ( $icon_path ) {
$icon_name = preg_replace( '#\..*$#', '', basename( $icon_path ) );

Expand Down

0 comments on commit eceaa18

Please sign in to comment.