remove comments
This commit is contained in:
parent
d7d6ebbc1f
commit
70c3b3fd51
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue