Validate::get_bad_words()
Description #
Check if checking for bad word is enabled.
Source #
File: lib/class-validate.php
public static function get_bad_words() { $bad_word_file = ap_get_theme_location( 'badwords.txt' ); // Return if badwords.txt file does not exists. if ( file_exists( $bad_word_file ) ) { return file( $bad_word_file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES ); } $option = ap_opt( 'bad_words' ); if ( ! empty( $option ) ) { return explode( ',', $option ); } return array(); }
Expand full source code Collapse full source code View on GitHub: lib/class-validate.php:561
Add your comment