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

WordPress Trac noreply at wordpress.org
Mon Jun 22 22:24:02 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        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------
Changes (by ayeshrajans):

 * keywords:  needs-patch => has-patch


Comment:

 Submitting a patch that replaces the variable with
 `$new_allowlist_options`, and creates a reference of it at
 `$new_whitelist_options`. Unless a plugin goes out of its way to destroy
 the variable (which will only destroy the reference with the patch), this
 should seamlessly rename the variable.

 This is the first approach I mentioned in comment 2.

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


More information about the wp-trac mailing list