diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-admin/includes/revision.php --- a/wp/wp-admin/includes/revision.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-admin/includes/revision.php Fri Sep 05 18:40:08 2025 +0200 @@ -39,8 +39,10 @@ return false; } - // If comparing revisions, make sure we're dealing with the right post parent. - // The parent post may be a 'revision' when revisions are disabled and we're looking at autosaves. + /* + * If comparing revisions, make sure we are dealing with the right post parent. + * The parent post may be a 'revision' when revisions are disabled and we're looking at autosaves. + */ if ( $compare_from && $compare_from->post_parent !== $post->ID && $compare_from->ID !== $post->ID ) { return false; } @@ -83,7 +85,7 @@ * @param string $field The current revision field. * @param WP_Post $compare_from The revision post object to compare to or from. * @param string $context The context of whether the current revision is the old - * or the new one. Values are 'to' or 'from'. + * or the new one. Either 'to' or 'from'. */ $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : ''; @@ -118,8 +120,10 @@ $diff = wp_text_diff( $content_from, $content_to, $args ); if ( ! $diff && 'post_title' === $field ) { - // It's a better user experience to still show the Title, even if it didn't change. - // No, you didn't see this. + /* + * It's a better user experience to still show the Title, even if it didn't change. + * No, you didn't see this. + */ $diff = '