Changes between Initial Version and Version 2 of Ticket #62390
- Timestamp:
- 12/09/2024 06:50:23 AM (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #62390
- Property Summary REST API: proposal for new endpoint to fetch post counts by post status → REST API: add WP_REST_Posts_Controller route to fetch page counts
- Property Version 6.7 → trunk
-
Ticket #62390 – Description
initial v2 1 Th is 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].1 The PR proposes to extend `WP_REST_Posts_Controller` with a new route /count to fetch page counts, e.g., wp/v2/pages/count. 2 2 3 https://github.com/WordPress/gutenberg/pull/66294 3 The total number of post counts is fetched by using [https://developer.wordpress.org/reference/functions/wp_count_posts/ wp_count_posts]. 4 5 https://github.com/WordPress/gutenberg/pull/67719 4 6 5 7 There is a need for a performant post counts check in the block editor. See: https://github.com/WordPress/gutenberg/pull/65223#issuecomment-2381323815
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)