[wp-trac] [WordPress Trac] #50434: Replace the `$new_whitelist_options` variable with a more inclusive name

WordPress Trac noreply at wordpress.org
Fri Jun 19 20:25:48 UTC 2020


#50434: Replace the `$new_whitelist_options` variable with a more inclusive name
--------------------------+-------------------------
 Reporter:  desrosj       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  5.5
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-------------------------
 Branching this off of #50413.

 The global variable `$new_whitelist_options` should be replaced with a
 more inclusive name. Because this is a global that a
 [https://wpdirectory.net/search/01EB6R99EVDB9V62GHTTTE0FTN handful of
 plugins reference directly], care should be taken when renaming it.

 I propose renaming the current variable (something like
 `$new_allowed_options`), but maintaining the current variable for a period
 of time (maybe two releases?), and triggering a `_doing_it_wrong()`
 notice.

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


More information about the wp-trac mailing list