[wp-trac] [WordPress Trac] #19437: Pass post type as a class to TinyMCE init

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 15 21:27:22 UTC 2012


#19437: Pass post type as a class to TinyMCE init
-------------------------+-----------------------
 Reporter:  markjaquith  |       Owner:  azaozz
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  3.4
Component:  TinyMCE      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:8 jamescollins]:
 > For security, do we need to esc_attr() the $body_class variable?

 Don't see a point in escaping the editor ID or the post_type strings.

 > That's what we do at the end of the get_body_class() function
 (http://core.trac.wordpress.org/browser/trunk/wp-includes/post-
 template.php#L545).

 Right, seems that's not needed there either, the HTML class attribute
 allows all UTF-8 chars with very few exceptions.

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


More information about the wp-trac mailing list