[wp-trac] [WordPress Trac] #64539: Deprecate the `addslashes_gpc()` function

WordPress Trac noreply at wordpress.org
Wed Feb 4 18:52:13 UTC 2026


#64539: Deprecate the `addslashes_gpc()` function
---------------------------------------------+--------------------------
 Reporter:  johnbillion                      |       Owner:  westonruter
     Type:  task (blessed)                   |      Status:  closed
 Priority:  normal                           |   Milestone:  7.0
Component:  General                          |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+--------------------------
Changes (by westonruter):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61590" 61590]:
 {{{
 #!CommitTicketReference repository="" revision="61590"
 Formatting: Deprecate the `addslashes_gpc()` function.

 This deprecates `addslashes_gpc()` in favor of `wp_slash()`, as the former
 is just a wrapper for the latter. The three remaining uses of
 `addslashes_gpc()` (in `WP_Query`) have been replaced with `wp_slash()`.
 Unit tests are added to verify that they have the same behavior.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10771

 Follow-up to [23591], [23555].

 Props rutviksavsani, audrasjb, westonruter, mindctrl, johnbillion.
 See #21767.
 Fixes #64539.
 }}}

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


More information about the wp-trac mailing list