Skip to content

Commit bddd187

Browse files
fix: ensure id in nav menu links is an integer
1 parent 3811d16 commit bddd187

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/default-filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function ($atts) {
2929
return $atts;
3030
}
3131

32-
$id = substr($atts['href'], strlen('#boxzilla-'));
32+
$id = (int) substr($atts['href'], strlen('#boxzilla-'));
3333
$atts['onclick'] = "Boxzilla.show({$id}); return false;";
3434
$atts['href'] = '';
3535
return $atts;

0 commit comments

Comments
 (0)