Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
trymebytes committed Nov 14, 2024
1 parent 629b8dd commit 4bdc5a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions themes/wporg-translate-events-2024/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ function render_page( string $template_path, string $title, array $attributes ):
<!-- /wp:group -->
BLOCKS
);
// get block name from template path
$page_block_name = basename( dirname( $template_path ) ) === 'events' ? pathinfo( $template_path, PATHINFO_FILENAME ) : basename( dirname( $template_path ) );
$header_json = wp_json_encode(
// get block name from template path.
$page_block_name = basename( dirname( $template_path ) ) === 'events' ? pathinfo( $template_path, PATHINFO_FILENAME ) : basename( dirname( $template_path ) );
$header_json = wp_json_encode(
array(
'title' => $title,
'page_block_name' => $page_block_name,
Expand Down

0 comments on commit 4bdc5a7

Please sign in to comment.