diff --git a/extensions/blocks/slideshow/slideshow.php b/extensions/blocks/slideshow/slideshow.php
index 6fc90eef8431a..c48bfd9d2c604 100644
--- a/extensions/blocks/slideshow/slideshow.php
+++ b/extensions/blocks/slideshow/slideshow.php
@@ -134,9 +134,10 @@ function jetpack_slideshow_block_bullets( $ids = array(), $block_ordinal = 0 ) {
$buttons = array_map(
function( $index ) {
return sprintf(
- '',
- esc_attr( $index ),
- ( $index + 1 ),
+ '',
+ absint( $index ),
+ esc_attr__( 'Go to slide', 'jetpack' ),
+ absint( $index + 1 ),
0 === $index ? 'selected' : ''
);
},