[wp-trac] [WordPress Trac] #56279: Use wp_get_latest_revision_id_and_total_count() where appropriate (was: Use wp_get_last_revision_id_and_total_count() where appropriate)

WordPress Trac noreply at wordpress.org
Mon Jul 25 21:33:09 UTC 2022


#56279: Use wp_get_latest_revision_id_and_total_count() where appropriate
----------------------------+---------------------
 Reporter:  SergeyBiryukov  |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  6.1
Component:  Revisions       |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------
Description changed by SergeyBiryukov:

Old description:

> Background: #55857
>
> A new function `wp_get_last_revision_id_and_total_count()`, with an
> optimized query to get the last revision ID and total count, was
> introduced in [53759] and [53769].
>
> As noted in comment:4:ticket:55857, there are a few other places in core
> that could use it.

New description:

 Background: #55857

 A new function `wp_get_latest_revision_id_and_total_count()`, with an
 optimized query to get the last revision ID and total count, was
 introduced in [53759], [53769], and [53778].

 As noted in comment:4:ticket:55857, there are a few other places in core
 that could use it.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56279#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list