diff --git src/bp-core/bp-core-moderation.php src/bp-core/bp-core-moderation.php
index 8d2a9c775..2a0906f9d 100644
|
|
|
function bp_core_check_for_moderation( $user_id = 0, $title = '', $content = '', |
| 190 | 190 | * @since 1.6.0 |
| 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. |
| 196 | 196 | * @param string $title The title of the content. |
| … |
… |
function bp_core_check_for_blacklist( $user_id = 0, $title = '', $content = '', |
| 224 | 224 | |
| 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. |
| 232 | 236 | if ( empty( $blacklist ) ) { |