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

WordPress Trac noreply at wordpress.org
Thu Jan 22 11:13:45 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          |   Keywords:  needs-patch
  Focuses:                  |
----------------------------+-------------------------
 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.

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


More information about the wp-trac mailing list