Skip to content

Commit

Permalink
fix: PHP coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthaknagoshe2002 committed Nov 19, 2024
1 parent 7555d97 commit dc2e067
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-author-name/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function render_block_core_post_author_name( $attributes, $content, $block ) {
}

if ( ! post_type_supports( get_post_type( $block->context['postId'] ), 'author' ) ) {
return '';
return '';
}

$author_name = get_the_author_meta( 'display_name', $author_id );
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/post-author/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ function render_block_core_post_author( $attributes, $content, $block ) {
}

if ( ! post_type_supports( get_post_type( $block->context['postId'] ), 'author' ) ) {
return '';
}
return '';
}

$avatar = ! empty( $attributes['avatarSize'] ) ? get_avatar(
$author_id,
Expand Down

0 comments on commit dc2e067

Please sign in to comment.