[wp-trac] [WordPress Trac] #21767: Remove stripslashes from API functions
WordPress Trac
noreply at wordpress.org
Wed Feb 4 18:52:14 UTC 2026
#21767: Remove stripslashes from API functions
-------------------------------------------------+-------------------------
Reporter: alexkingorg | Owner: nacin
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 3.6
Component: Formatting | Version: 3.4
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing needs-unit- | Focuses:
tests 3.6-early |
-------------------------------------------------+-------------------------
Comment (by westonruter):
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/21767#comment:130>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list