Opened 10 years ago
Closed 10 years ago
#5697 closed enhancement (fixed)
New class to style visibility levels
Reported by: | SGr33n | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 2.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Settings | Keywords: | has-patch |
Cc: |
Description
Hi,
As anticipated on https://buddypress.trac.wordpress.org/ticket/5693, I would suggest to add a class for visibility settings level radio buttons, in order to make it possible to style them with icons.
So there is a patch to make it.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Thanks for the patch. The request seems reasonable.
We'll need to adjust the patch, slightly:
printf( $r['before_radio'], $level['id'] )
should beprintf( $r['before_radio'], esc_attr( $level['id'] ) )
in case someone figures out a way of inserting harmful XSS-type markup into theclass=
property. It also helps from a code review perspective that we know the output's being escaped safely in case a future change to BuddyPress accidentally introduces a problem.