Skip to content

Commit fa4224d

Browse files
committed
Prevented output of empty skip link markup.
1 parent 0b11de7 commit fa4224d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/api/html/accessibility.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ function beans_build_skip_links() {
4747
* @type string Anchor text.
4848
* }
4949
*/
50-
$skip_links = (array) apply_filters( 'beans_skip_links_list', $skip_links );
50+
$skip_links = apply_filters( 'beans_skip_links_list', $skip_links );
51+
52+
if ( empty( $skip_links ) ) {
53+
return;
54+
}
5155

5256
beans_output_skip_links( $skip_links );
5357
}

0 commit comments

Comments
 (0)