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

WordPress Trac noreply at wordpress.org
Mon Jul 25 12:18:54 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          |  Resolution:
 Keywords:  has-patch       |     Focuses:
Changes (by SergeyBiryukov):

 * keywords:  has-patch needs-refresh => has-patch


 Replying to [comment:2 peterwilsoncc]:
 > I've reopened #55857 to rename the function to
 `wp_get_latest_revision_id_and_total_count()` so the function follows the
 conventional term used for getting latest posts, comments, etc.

 Thanks! [attachment:"56279.2.diff"] switches to "latest" and removes the
 extra semicolon from the previous patch.

 There may be more instances where the function can be used, these are just
 the ones I found at a glance.

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

More information about the wp-trac mailing list