[wp-trac] [WordPress Trac] #56233: Dead link and/or obsolete function description in `addslashes_gpc()`

WordPress Trac noreply at wordpress.org
Mon Jul 25 16:16:56 UTC 2022

#56233: Dead link and/or obsolete function description in `addslashes_gpc()`
 Reporter:  audrasjb               |       Owner:  (none)
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  6.1
Component:  Formatting             |     Version:  0.71
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  docs

Comment (by SergeyBiryukov):

 Replying to [ticket:56233 audrasjb]:
 > Given `magic_quotes` is not used anymore in WP Core and after having a
 look to ticket:40716#comment:1, I guess we can probably remove entirely
 this obsolete function description.

 Yes, I agree:

 * Usage of `get_magic_quotes_gpc()` was removed from `addslashes_gpc()` in
 [46105] / #47783.
 * A similar description fragment was removed from `wp_parse_str()` in that
 changeset, but this one was missed.
 * The [https://www.php.net/manual/en/function.get-magic-quotes-gpc.php
 get_magic_quotes_gpc()] function itself was deprecated in PHP 7.4 and
 removed in PHP 8.0.

Ticket URL: <https://core.trac.wordpress.org/ticket/56233#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list