Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#56981 closed defect (bug) (fixed)

Typo in a comment in wp_prepare_revisions_for_js()

Reported by: dilipbheda's profile dilipbheda Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.2 Priority: normal
Severity: normal Version:
Component: Revisions Keywords: has-patch commit
Focuses: docs Cc:

Description

There is a comment block in wp_prepare_revisions_for_js():

<?php
/**
 * 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'
 */

"autsosave" here should be "autosave".

Change History (6)

#2 @mukesh27
2 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 6.2

Thanks for ticket and PR.

Nice catch. PR LGTM approved.

@SergeyBiryukov commented on PR #3558:


2 years ago
#3

Thanks for the PR! This looks good.

I have added a minor update to use the correct format for multi-line comments as per the documentation standards.

@dilipbheda commented on PR #3558:


2 years ago
#4

Thank You @SergeyBiryukov :rocket:

#5 @SergeyBiryukov
2 years ago

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

In 54749:

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.

@SergeyBiryukov commented on PR #3558:


2 years ago
#6

Merged in r54749.

Note: See TracTickets for help on using tickets.