[wp-trac] [WordPress Trac] #20210: Always allow the standard attributes for all elements when filtering content using kses for posts.

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 9 14:24:14 UTC 2012


#20210: Always allow the standard attributes for all elements when filtering
content using kses for posts.
--------------------------+-----------------------------
 Reporter:  westi         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Formatting    |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------------

Comment (by duck_):

 Good idea.

 What would be nice is if we can come up with a way adding these globally
 allowed attributes on the fly (e.g. in wp_kses_attr()) rather than having
 to specify them over and over again that monster global array. The problem
 there is continuing to disallow them for commenters.

 Replying to [ticket:20210 westi]:
 > We should always allow the standard attributes: class, id, style and
 title.

 For reference: http://dev.w3.org/html5/spec/Overview.html#global-
 attributes

 I think the four mentioned here are the best to start with.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20210#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list