Changeset 12695
- Timestamp:
- 07/30/2020 09:10:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/src/bp-core/bp-core-moderation.php
r11447 r12695 191 191 * @since 2.6.0 Added $error_type parameter. 192 192 * 193 * @todo Why don't we use wp_ blacklist_check() for this?193 * @todo Why don't we use wp_check_comment_disallowed_list() for this? 194 194 * 195 195 * @param int $user_id User ID. … … 225 225 /** Blacklist ************************************************************ 226 226 */ 227 $disallowed_keys_option_name = 'blacklist_keys'; 228 if ( function_exists( 'wp_check_comment_disallowed_list' ) ) { 229 $disallowed_keys_option_name = 'disallowed_keys'; 230 } 227 231 228 232 // Get the moderation keys. 229 $blacklist = trim( get_option( 'blacklist_keys') );233 $blacklist = trim( get_option( $disallowed_keys_option_name ) ); 230 234 231 235 // Bail if blacklist is empty.
Note: See TracChangeset
for help on using the changeset viewer.