| @@ -54,19 +54,13 @@ | ||
| 54 | 54 | /* |
| 55 | 55 | * Check against supported comment types. |
| 56 | 56 | * Only federate registered ActivityPub comment types and standard WordPress comments. |
| 57 | 57 | */ |
| 58 | - $comment_type = $comment->comment_type; | |
| 59 | - if ( '' === $comment_type ) { | |
| 60 | - // Be backwards compatible with comments that have an empty type by treating them as standard comments. | |
| 61 | - $comment_type = 'comment'; | |
| 62 | - } | |
| 63 | - | |
| 64 | 58 | $allowed_types = Comment_Utils::get_comment_type_slugs(); |
| 65 | 59 | $allowed_types[] = 'comment'; // Add core WordPress comment types. |
| 66 | 60 | |
| 67 | 61 | // Check if comment type is in allowed list. |
| 68 | - if ( ! in_array( $comment_type, $allowed_types, true ) ) { | |
| 62 | + if ( ! in_array( $comment->comment_type, $allowed_types, true ) ) { | |
| 69 | 63 | return; |
| 70 | 64 | } |
| 71 | 65 | |
| 72 | 66 | $type = false; |