Make WordPress Core

Opened 21 months ago

Closed 21 months ago

Last modified 21 months 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
21 months 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:


21 months 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:


21 months ago
#4

Thank You @SergeyBiryukov :rocket:

#5 @SergeyBiryukov
21 months 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:


21 months ago
#6

Merged in r54749.

Note: See TracTickets for help on using tickets.