Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #50413, comment 35


Ignore:
Timestamp:
07/21/2020 07:08:42 PM (3 years ago)
Author:
johnjamesjacoby
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #50413, comment 35

    initial v1  
    55* Previous to WordPress 5.5, it would return results
    66* Currently, it returns `false`, and also results in an extra database query as a cache miss
     7
     8This ultimately means that plugins using the old key are led to believe there are no blocked words, causing them to unintentionally allow the undesirable words through.
    79
    810Added to this, the Options API does not have a clever way to announce to plugins that an option key is deprecated (like `_deprecated_option()` or something). To support the new key, plugins using `blacklist_keys` need to do a hard version check, using `is_wp_version_compatible()` or equivalent.