fix phpcs issue
This commit is contained in:
parent
c6657d2fa8
commit
07d93e809b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue