| @@ -2,9 +2,8 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Spam check using WordPress spam comments |
| 4 | 4 | * |
| 5 | 5 | * @since 6.21 |
| 6 | - * | |
| 7 | 6 | * @package Formidable |
| 8 | 7 | */ |
| 9 | 8 | |
| 10 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -12,11 +11,8 @@ | ||
| 12 | 11 | } |
| 13 | 12 | |
| 14 | 13 | class FrmSpamCheckUseWPComments extends FrmSpamCheck { |
| 15 | 14 | |
| 16 | - /** | |
| 17 | - * @return bool | |
| 18 | - */ | |
| 19 | 15 | protected function check() { |
| 20 | 16 | $spam_comments = get_comments( |
| 21 | 17 | array( |
| 22 | 18 | 'status' => 'spam', |
| @@ -25,9 +21,8 @@ | ||
| 25 | 21 | 'orderby' => 'comment_date_gmt', |
| 26 | 22 | 'order' => 'DESC', |
| 27 | 23 | ) |
| 28 | 24 | ); |
| 29 | - | |
| 30 | 25 | if ( ! is_array( $spam_comments ) ) { |
| 31 | 26 | return false; |
| 32 | 27 | } |
| 33 | 28 | |