Skip to content

Commit

Permalink
Fix typo in native share button sprintf format string.
Browse files Browse the repository at this point in the history
Fixes the `aria-label` value of the button.
  • Loading branch information
gonzomir committed Apr 20, 2024
1 parent 46158c1 commit 2a32902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-minimal-share-buttons.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function( $social ) use ( $options ) {
$classes = apply_filters( 'msb_button_classes', $classes, 'native' );

printf(
'<button type="button" data-url="%1$s" data-title="%2$s" class="%3$s" aria-label="%4%s">%5$s</button>',
'<button type="button" data-url="%1$s" data-title="%2$s" class="%3$s" aria-label="%4$s">%5$s</button>',
esc_attr( get_permalink() ),
esc_attr( $share_title ),
esc_attr( join( ' ', $classes ) ),
Expand Down

0 comments on commit 2a32902

Please sign in to comment.