Skip to content

Commit

Permalink
Login/out: Fix php linting
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshupathak95 committed Dec 23, 2024
1 parent 8a0b2c8 commit 01373f3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/block-library/src/loginout/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ function render_block_core_loginout( $attributes ) {
);

// If display as button is enabled, wrap the link in button classes
if ( ! empty( $attributes['displayAsButton'] ) ) {
$classes .= ' wp-block-button';
$contents = sprintf(
'<div class="wp-block-button__link wp-element-button">%s</div>',
$contents
);
}
if ( ! empty( $attributes['displayAsButton'] ) ) {
$classes .= ' wp-block-button';
$contents = sprintf(
'<div class="wp-block-button__link wp-element-button">%s</div>',
$contents
);
}

// If logged-out and displayLoginAsForm is true, show the login form.
if ( ! is_user_logged_in() && ! empty( $attributes['displayLoginAsForm'] ) ) {
Expand Down

0 comments on commit 01373f3

Please sign in to comment.