[wp-trac] [WordPress Trac] #64539: Deprecate the `addslashes_gpc()` function
WordPress Trac
noreply at wordpress.org
Tue Mar 17 01:53:59 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:
add-to-field-guide needs-dev-note |
-------------------------------------------------+-------------------------
Comment (by westonruter):
I drafted a dev note section for the field guide:
https://docs.google.com/document/d/1PpVQE9kuNE0KWfQxUQKfrbzfuRBkuSg6Sz7-NUWCsKI/edit?tab=t.0
I wanted to take the opportunity to provide context for why this function
was needed and why `wp_slash()` is //still// needed, since authors can
still liable to pass unslashed data to functions that require it.
Related: https://github.com/WordPress/WordPress-Coding-
Standards/issues/172
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64539#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list