WordPress.org

Make WordPress Core

#23913 closed enhancement (fixed)

Revisions: remove the new _wp_last_revision_matches_current_post()

Reported by: azaozz Owned by: azaozz
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: Revisions Keywords: has-patch
Focuses: Cc:

Description

As the title. That function is not needed, can be replaced with simple revision version check as we add a copy of the current post while fixing revisions post_author fields.

Attachments (1)

23913.patch (2.2 KB) - added by azaozz 13 months ago.

Download all attachments as: .zip

Change History (3)

comment:1 azaozz13 months ago

  • Keywords has-patch added

In 23913.patch​:

  • Remove _wp_last_revision_matches_current_post() and replace it with revision version check in wp_list_post_revisions() (the only place it's used).

azaozz13 months ago

comment:2 azaozz13 months ago

  • Owner set to azaozz
  • Resolution set to fixed
  • Status changed from new to closed

In 23885:

Revisions: remove the new _wp_last_revision_matches_current_post(), can be replaced by a simple revisions version check. Fixes #23913

Note: See TracTickets for help on using tickets.