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

WordPress Trac noreply at wordpress.org
Thu Jan 22 11:14:20 UTC 2026


#64539: Deprecate the `addslashes_gpc()` function
----------------------------+---------------------
 Reporter:  johnbillion     |       Owner:  (none)
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  7.0
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:
----------------------------+---------------------
Description changed by johnbillion:

Old description:

> The `addslashes_gpc()` function is just a wrapper for `wp_slash()`. It
> should be moved to deprecated.php and deprecated to help reduce confusion
> about magic quoting, which is where this function originated.

New description:

 The `addslashes_gpc()` function is just a wrapper for `wp_slash()`. It
 should be moved to deprecated.php and deprecated to help reduce confusion
 about magic quoting, which is where this function originated.

 There are some uses of `addslashes_gpc()` that need to be switched to
 `wp_slash()` too.

--

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


More information about the wp-trac mailing list