[wp-trac] [WordPress Trac] #62024: wp_kses_post incorrectly escapes "<" attributes values

WordPress Trac noreply at wordpress.org
Tue Sep 10 09:24:45 UTC 2024


#62024: wp_kses_post incorrectly escapes "<" attributes values
--------------------------+-------------------------------
 Reporter:  jernstjernst  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  coding-standards
--------------------------+-------------------------------

Comment (by jernstjernst):

 Sorry, the test case should read:


 {{{
 <?php
 echo wp_kses_post('<button data-glide-dir="<"><</button>')
 ?>
 }}}

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


More information about the wp-trac mailing list