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

WordPress Trac noreply at wordpress.org
Fri Dec 30 17:09:23 UTC 2016


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

Comment (by jdgrimes):

 Replying to [comment:14 jrf]:
 > I'd like to ask for reconsideration of this issue, most particularly
 patch `20009.2.diff`. While the other patch might break existing plugin
 filters, patch `20009.2.diff` will not and will provide a better safeguard
 for users.

 That patch '''could''' still break stuff as pointed out [comment:7 above].
 However, anything that would break is already quite fragile anyway, since
 it is relying on placing the attribute as the very last element in the
 array. If it isn't the last element, the whole thing falls apart. This
 ''can'' be achieved by using a very late filter priority, but there really
 is no guarantee. It is meant to break. ;-)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/20009#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list