| @@ -66,9 +66,9 @@ | ||
| 66 | 66 | } |
| 67 | 67 | // translators: 1: Author archive link. 2: Link target. %3$s Aria label. %4$s Avatar image. |
| 68 | 68 | $avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( get_author_posts_url( $author_id ) ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block ); |
| 69 | 69 | } |
| 70 | - return sprintf( '<div %1$s>%2$s</div>', $wrapper_attributes, $avatar_block ); | |
| 70 | + return sprintf( '<div %1s>%2s</div>', $wrapper_attributes, $avatar_block ); | |
| 71 | 71 | } |
| 72 | 72 | $comment = get_comment( $block->context['commentId'] ); |
| 73 | 73 | if ( ! $comment ) { |
| 74 | 74 | return ''; |
| @@ -92,9 +92,9 @@ | ||
| 92 | 92 | $label = 'aria-label="' . esc_attr( sprintf( __( '(%s website link, opens in a new tab)' ), $comment->comment_author ) ) . '"'; |
| 93 | 93 | } |
| 94 | 94 | $avatar_block = sprintf( '<a href="%1$s" target="%2$s" %3$s class="wp-block-avatar__link">%4$s</a>', esc_url( $comment->comment_author_url ), esc_attr( $attributes['linkTarget'] ), $label, $avatar_block ); |
| 95 | 95 | } |
| 96 | - return sprintf( '<div %1$s>%2$s</div>', $wrapper_attributes, $avatar_block ); | |
| 96 | + return sprintf( '<div %1s>%2s</div>', $wrapper_attributes, $avatar_block ); | |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | 100 | * Generates class names and styles to apply the border support styles for |