WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 22 months ago

#21084 closed feature request (maybelater)

attr values in wp_kses

Reported by: WraithKenny Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Validation Keywords:
Focuses: Cc:

Description

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)

comment:1 WraithKenny2 years ago

  • Keywords dev-feedback added

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

comment:2 WraithKenny2 years ago

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

Sorry, just remembered that feature requests go to idea at wordpress.org

http://wordpress.org/extend/ideas/topic/filtering-values-of-attributes-for-html-elements-passed-to-wp_kses

comment:3 helenyhou22 months ago

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