[wp-trac] [WordPress Trac] #54601: wp_insert_post function removes backslashes

WordPress Trac noreply at wordpress.org
Wed Dec 8 15:50:06 UTC 2021


#54601: wp_insert_post function removes backslashes
-------------------------------+------------------------------
 Reporter:  sweetheatmn        |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:  invalid
 Keywords:  close              |     Focuses:
-------------------------------+------------------------------
Changes (by Presskopp):

 * keywords:   => close
 * status:  new => closed
 * resolution:   => invalid


Comment:

 afaik that's because of Sanitization (default behaviour)

 all `[&<>"\']` will be stripped.

 Looks like this can be filtered, but I cannot provide a ready to go
 solution.

 At least no core bug, but default behaviour, so let's close. Feel free to
 comment more

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


More information about the wp-trac mailing list