[wp-trac] [WordPress Trac] #20009: Escape later when getting post and body classes

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 10 15:50:56 UTC 2012


#20009: Escape later when getting post and body classes
------------------------------------+------------------------------
 Reporter:  mfields                 |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Themes                  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------

Comment (by scribu):

 Moving the escaping into body_class() isn't so good, because theme authors
 might use get_body_class() directly, without bothering to escape it's
 output. So [attachment:20009.diff] looks good to me.

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


More information about the wp-trac mailing list