Make WordPress Core


Ignore:
Timestamp:
07/25/2022 07:28:29 PM (2 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-includes/class-wp-customize-manager.php

    r53455 r53779  
    34283428     *
    34293429     * @param bool    $post_has_changed Whether the post has changed.
    3430      * @param WP_Post $last_revision    The last revision post object.
     3430     * @param WP_Post $latest_revision  The latest revision post object.
    34313431     * @param WP_Post $post             The post object.
    34323432     * @return bool Whether a revision should be made.
    34333433     */
    3434     public function _filter_revision_post_has_changed( $post_has_changed, $last_revision, $post ) {
    3435         unset( $last_revision );
     3434    public function _filter_revision_post_has_changed( $post_has_changed, $latest_revision, $post ) {
     3435        unset( $latest_revision );
    34363436        if ( 'customize_changeset' === $post->post_type ) {
    34373437            $post_has_changed = $this->store_changeset_revision;
Note: See TracChangeset for help on using the changeset viewer.