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

WordPress Trac noreply at wordpress.org
Wed Jul 22 16:47:30 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 dev-feedback  |     Focuses:
---------------------------------------------------+-----------------------

Comment (by desrosj):

 Re-reading this, I'd also add that using `wp_get_cache( 'blacklist_keys',
 'options' )` to access the cached option value is probably incorrect usage
 as well. `get_option()` and the options API should be used to properly
 access a cached option value.

 That makes the only negative of this approach that the hooks will not run
 for deprecated options.

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


More information about the wp-trac mailing list