[wp-trac] [WordPress Trac] #18322: The Road to Magic Quotes Sanity

WordPress Trac noreply at wordpress.org
Mon Jun 26 20:19:28 UTC 2023


#18322: The Road to Magic Quotes Sanity
--------------------------------------+-----------------------------
 Reporter:  ryan                      |       Owner:  jorbin
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  Future Release
Component:  Bootstrap/Load            |     Version:  3.2.1
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |     Focuses:
--------------------------------------+-----------------------------

Comment (by lucasbustamante):

 Is there any foreseeable impact to deprecate and stop calling
 `wp_magic_quotes();` as part of the WordPress load process?

 This way, we can stop requiring the use of `wp_unslash()` on every
 interaction with super globals like `$_POST`, `$_GET`, which adds
 complexity and becomes a barrier to the adoption of static code analysis
 tools such as PHPCS.

 The goal is to make developers feel like quality tools such as PHPCS
 improve their code and worfklows without getting in their way with
 "''meaningless nitpicks''". I think the ecosystem has a lot to gain in
 making the development experience more enjoyable overall.

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


More information about the wp-trac mailing list