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

WordPress Trac noreply at wordpress.org
Sat Jul 23 16:22:37 UTC 2022


#56279: Use wp_get_last_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          |   Keywords:  has-patch
  Focuses:                  |
----------------------------+-----------------------
 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.

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


More information about the wp-trac mailing list