Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#21084 closed feature request (maybelater)

attr values in wp_kses

Reported by: wraithkenny's profile WraithKenny Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Validation Keywords:
Focuses: Cc:


It'd be great to be able to sanitize or whitelist values for attributes on certain elements in the kses functions. Perhaps a filter in wp_kses_attr(), or alternatively by passing a callback to the attribute array instead of 'true' or 'array()'.

Change History (4)

#1 @WraithKenny
12 years ago

  • Keywords dev-feedback added

the filter would probably be a one liner, but the handling of a callback, a little more difficult...

#2 @WraithKenny
12 years ago

  • Resolution set to maybelater
  • Status changed from new to closed

Sorry, just remembered that feature requests go to idea at

#3 @helenyhou
12 years ago

  • Keywords dev-feedback removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.