[wp-trac] [WordPress Trac] #50413: Update code and comments to remove "blacklist" and "whitelist"

WordPress Trac noreply at wordpress.org
Tue Jun 23 13:36:29 UTC 2020


#50413: Update code and comments to remove "blacklist" and "whitelist"
--------------------------------------+-----------------------
 Reporter:  strangerstudios           |       Owner:  desrosj
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  5.5
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch needs-dev-note  |     Focuses:
--------------------------------------+-----------------------

Comment (by desrosj):

 Replying to [comment:20 ocean90]:
 >
 > I also noticed that the `wp.deprecated` package indicates that the
 provided version will remove the function, not as when it was deprecated.
 That will also need to be fixed, and is in [attachment:"50413.2.diff"].
 >
 > Instead of using `wp.deprecated` I think a simple `window.console.log`
 would be sufficient here. This will avoid three more dependencies.
 >
 >
 >
 > `add_option_allowed_list()` and `remove_option_allowed_list()` sound a
 bit odd now. Thoughts on using `add_allowed_options()` and
 `remove_allowed_options()` instead?

 Agreed! [attachment:"50413.3.diff"] makes these adjustments.

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


More information about the wp-trac mailing list