#6654 closed defect (bug) (fixed)
get_available_post_statuses() query is slow
| Reported by: | ryan | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5.1 |
| Component: | Optimization | Version: | 2.5 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
The query in get_available_post_statuses() uses DISTINCT, which is slow. The query in wp_count_posts() is much faster and can be used to derive the same information.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [7637]) Use wp_count_posts() to determine availabel statuses for get_available_post_statuses(). fixes #6654 for 2.5