[wp-trac] [WordPress Trac] #38073: Goodbye wp_reset_vars()

WordPress Trac noreply at wordpress.org
Mon Aug 7 14:00:14 UTC 2017


#38073: Goodbye wp_reset_vars()
-------------------------------------------------+-------------------------
 Reporter:  swissspidy                           |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  General                              |  Review
 Severity:  normal                               |     Version:  trunk
 Keywords:  good-first-bug dev-feedback has-     |  Resolution:
  patch reporter-feedback                        |     Focuses:
                                                 |  administration
-------------------------------------------------+-------------------------
Changes (by killua99):

 * keywords:  good-first-bug dev-feedback has-patch => good-first-bug dev-
     feedback has-patch reporter-feedback
 * version:   => trunk


Comment:

 In this patch I follow @swissspidy suggestions about simple stop using
 `wp_reset_vars()` and refactoring for sanitize_text_field() instead.
 Notice I do not alter any CodeStandard to make easy to review the patch.
 Also I did add a message to the function with a @deprecated message, I
 really don't know which version that function could be removed so I
 guessed WordPress 5.

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


More information about the wp-trac mailing list