PluginProbe
ActivityPub / 7.8.2
ActivityPub v7.8.2
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/scheduler/class-comment.php +1 -7 8.2.0 → 7.8.2 View file →
@@ -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;