Skip to content

Commit

Permalink
No need to check whether the method exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
obenland committed Dec 19, 2024
1 parent a6251ee commit 24c9609
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions integration/class-jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

namespace Activitypub\Integration;

use Activitypub\Comment;

/**
* Jetpack integration class.
*/
Expand Down Expand Up @@ -47,10 +49,6 @@ public static function add_sync_meta( $allow_list ) {
* @return array
*/
public static function add_comment_types( $comment_types ) {
if ( \method_exists( 'Activitypub\Comment', 'get_comment_type_slugs' ) ) {
$comment_types = \array_merge( $comment_types, \Activitypub\Comment::get_comment_type_slugs() );
}

return array_unique( $comment_types );
return array_unique( \array_merge( $comment_types, Comment::get_comment_type_slugs() ) );
}
}

0 comments on commit 24c9609

Please sign in to comment.