Opened 12 years ago
Closed 12 years ago
#5697 closed enhancement (fixed)
New class to style visibility levels
| Reported by: | SGr33n | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Settings | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.