remove comments

This commit is contained in:
Matthias Pfefferle 2023-05-19 11:45:12 +02:00
parent d7d6ebbc1f
commit 70c3b3fd51

View file

@ -80,8 +80,6 @@ class Outbox {
// phpcs:ignore // phpcs:ignore
$json->totalItems = 0; $json->totalItems = 0;
// We can query this more directly based on the supplied post types.
// And cache these counts and invalidate them on publish_post.
foreach ( $post_types as $post_type ) { foreach ( $post_types as $post_type ) {
$count_posts = \wp_count_posts( $post_type ); $count_posts = \wp_count_posts( $post_type );
$json->totalItems += \intval( $count_posts->publish ); // phpcs:ignore $json->totalItems += \intval( $count_posts->publish ); // phpcs:ignore