Skip to content

Commit

Permalink
Escape id attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
dgwyer committed Mar 6, 2024
1 parent d0156f9 commit 1f2239c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/class-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public static function navigation() {
esc_attr( $tab['class'] ),
esc_html( $tab['name'] ),
! empty( $tab['external'] ) ? 'target="_blank" rel="noreferrer noopener"' : '',
! empty( $tab['id'] ) ? 'id="' . esc_attr( $tab['id'] ) . '"' : ''
! empty( $tab['id'] ) ? esc_attr( 'id="' . $tab['id'] . '"' ) : ''
);
}
?>
Expand Down

0 comments on commit 1f2239c

Please sign in to comment.