From 07d93e809bbab62ba6a68fc71e66500af43c6cf3 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 5 Dec 2022 20:55:13 +0100 Subject: [PATCH] fix phpcs issue --- includes/rest/class-outbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/rest/class-outbox.php b/includes/rest/class-outbox.php index ad38f8d..110482e 100644 --- a/includes/rest/class-outbox.php +++ b/includes/rest/class-outbox.php @@ -73,8 +73,8 @@ class Outbox { $json->actor = \get_author_posts_url( $user_id ); $json->type = 'OrderedCollectionPage'; $json->partOf = \get_rest_url( null, "/activitypub/1.0/users/$user_id/outbox" ); // phpcs:ignore + $json->totalItems = 0; // phpcs:ignore - $json->totalItems = 0; foreach ( $post_types as $post_type ) { $count_posts = \wp_count_posts( $post_type ); $json->totalItems += \intval( $count_posts->publish ); // phpcs:ignore