WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/23/2020 03:12:49 AM (6 months ago)
Author:
jorbin
Message:

General: Update code for readability and inclusion

There are two pieces in here:

1) The update to change blacklist to blocklist is moved to disallowed_list. "Block" has a meaning in our code, and there could be ambiguity between this code and code related to blocks.

2) This improves backwards compatibility for code that was accessing the now deprecated code.

Previously: [48477], [48405], [48400], [48121], [48122], [48124], [48142], [48566]

Props: desrosj, SergeyBiryukov, johnjamesjacoby
Fixes: #50413

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r48444 r48575  
    48604860
    48614861        case 'moderation_keys':
    4862         case 'blocklist_keys':
     4862        case 'disallowed_keys':
    48634863            $value = $wpdb->strip_invalid_text_for_column( $wpdb->options, 'option_value', $value );
    48644864            if ( is_wp_error( $value ) ) {
Note: See TracChangeset for help on using the changeset viewer.