[wp-trac] [WordPress Trac] #33837: We should avoid Superglobals when possible

WordPress Trac noreply at wordpress.org
Thu Sep 17 12:55:36 UTC 2015


#33837: We should avoid Superglobals when possible
-----------------------------------+-----------------------------
 Reporter:  wonderboymusic         |       Owner:  wonderboymusic
     Type:  enhancement            |      Status:  assigned
 Priority:  normal                 |   Milestone:  4.4
Component:  General                |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  2nd-opinion has-patch  |     Focuses:
-----------------------------------+-----------------------------

Comment (by westi):

 Replying to [comment:22 helen]:
 > I'm reverting this until there's been more discussion about what the
 right approach is for us now and moving forward. Naming it
 `wp_validate_action()` is a definite no.

 Personally I think wrapping up superglobals like this is over obfuscation
 of functionality, it just makes the code more complex not less complex.

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


More information about the wp-trac mailing list