[wp-trac] [WordPress Trac] #52518: sanitize_post_field filter for 'raw' context

WordPress Trac noreply at wordpress.org
Thu Sep 11 19:49:39 UTC 2025


#52518: sanitize_post_field filter for 'raw' context
-------------------------------+------------------------------
 Reporter:  Tkama              |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by SirLouen):

 * keywords:   => reporter-feedback
 * version:  5.6.1 =>


Comment:

 Replying to [ticket:52518 Tkama]:
 > In some cases it can be useful to change values in `raw` context.

 For how the code is structured, I cannot really figure out a nice case
 where those filters, which also are concurrent with
 [https://github.com/SirLouen/wordpress-
 develop/blob/f57cf3d104de569607b47ec0b87415384a642f90/src/wp-
 includes/post.php#L3212 this] and [https://github.com/SirLouen/wordpress-
 develop/blob/f57cf3d104de569607b47ec0b87415384a642f90/src/wp-
 includes/post.php#L3239 this], could be of use

 Can you put a good testing use case
 ([https://make.wordpress.org/test/2025/05/15/building-the-testing-use-case
 /#the-hook check this]), to showcase how you could be using this without
 being able of taking advantage of what we currently have available?

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


More information about the wp-trac mailing list