Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #62390


Ignore:
Timestamp:
12/09/2024 06:50:23 AM (20 months ago)
Author:
ramonopoly
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62390

    • Property Summary REST API: proposal for new endpoint to fetch post counts by post statusREST API: add WP_REST_Posts_Controller route to fetch page counts
    • Property Version 6.7trunk
  • Ticket #62390 – Description

    initial v2  
    1 This ticket tracks proposal in Gutenberg to develop a new Core endpoint to fetch the total number of post counts by post status using [https://developer.wordpress.org/reference/functions/wp_count_posts/ wp_count_posts].
     1The PR proposes to extend `WP_REST_Posts_Controller` with a new route /count to fetch page counts, e.g., wp/v2/pages/count.
    22
    3 https://github.com/WordPress/gutenberg/pull/66294
     3The total number of post counts is fetched by using [https://developer.wordpress.org/reference/functions/wp_count_posts/ wp_count_posts].
     4
     5https://github.com/WordPress/gutenberg/pull/67719
    46
    57There is a need for a performant post counts check in the block editor. See: https://github.com/WordPress/gutenberg/pull/65223#issuecomment-2381323815