Skip to content

Commit

Permalink
Prevented output of empty skip link markup.
Browse files Browse the repository at this point in the history
  • Loading branch information
christophherr committed Sep 26, 2018
1 parent 0b11de7 commit fa4224d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/api/html/accessibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ function beans_build_skip_links() {
* @type string Anchor text.
* }
*/
$skip_links = (array) apply_filters( 'beans_skip_links_list', $skip_links );
$skip_links = apply_filters( 'beans_skip_links_list', $skip_links );

if ( empty( $skip_links ) ) {
return;
}

beans_output_skip_links( $skip_links );
}
Expand Down

0 comments on commit fa4224d

Please sign in to comment.