[wp-trac] [WordPress Trac] #60347: wp_kses breaking text fragments links

WordPress Trac noreply at wordpress.org
Fri Mar 28 13:30:29 UTC 2025


#60347: wp_kses breaking text fragments links
-------------------------------------------------+-------------------------
 Reporter:  asafm7                               |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Formatting                           |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-unit-tests changes-requested     |     Focuses:
  has-testing-info                               |
-------------------------------------------------+-------------------------

Comment (by shanemuir):

 @SirLouen Thanks for this, however I will need to spend more time
 debugging and understanding what `kses.php` is doing since as soon as I
 extract my logic into it's own specific method text fragments are no
 longer preserved so something further on in `wp_kses_bad_protocol` is
 removing text fragments when the check is not part of the 'short circuit'
 logic.

 Need to wrap my head around it see what's going on...

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


More information about the wp-trac mailing list