From 2dce57706fa56db2e931be853ee036049921884f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 4 Nov 2022 10:08:35 +0000 Subject: [PATCH] Docs: Fix typo in a comment in `wp_prepare_revisions_for_js()`. Includes updating the comment to use the correct format for multi-line comments as per the documentation standards. Follow-up to [30353]. Props dilipbheda, mukesh27. Fixes #56981. git-svn-id: https://develop.svn.wordpress.org/trunk@54749 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/revision.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/revision.php b/src/wp-admin/includes/revision.php index a91fc54650..01ef368d40 100644 --- a/src/wp-admin/includes/revision.php +++ b/src/wp-admin/includes/revision.php @@ -279,9 +279,9 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null $revisions[ $revision->ID ] = apply_filters( 'wp_prepare_revision_for_js', $revisions_data, $revision, $post ); } - /** - * If we only have one revision, the initial revision is missing; This happens - * when we have an autsosave and the user has clicked 'View the Autosave' + /* + * If we only have one revision, the initial revision is missing. This happens + * when we have an autosave and the user has clicked 'View the Autosave'. */ if ( 1 === count( $revisions ) ) { $revisions[ $post->ID ] = array(