Make WordPress Core


Ignore:
Timestamp:
07/25/2022 07:28:29 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Revisions: Update the "last revision" wording to "latest revision" in various files.

This aims to reduce ambiguity about what exactly is the "first" or "last" revision, and bring more consistency with similar wording elsewhere in core, e.g. latest posts, latest comments, etc.

This affects:

  • wp_save_post_revision()
  • wp_prepare_revisions_for_js()
  • WP_Customize_Manager::filter_revision_post_has_changed()

Follow-up to [53759], [53769], [53778].

Props peterwilsoncc.
Fixes #55857.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/revision.php

    r52332 r53779  
    301301
    302302    /*
    303      * If a post has been saved since the last revision (no revisioned fields
     303     * If a post has been saved since the latest revision (no revisioned fields
    304304     * were changed), we may not have a "current" revision. Mark the latest
    305305     * revision as "current".
Note: See TracChangeset for help on using the changeset viewer.