Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#60285 closed defect (bug) (fixed)

Several typo corrections in core files inline documents

Reported by: shailu25 Owned by: SergeyBiryukov
Priority: normal Milestone: 6.5
Component: General Version:
Severity: trivial Keywords:
Cc: Focuses: docs

Description

Several typo corrections in core files inline documents

1. In wp-includes/Text/Diff.php Line 299

case-insensitve

It should be

case-insensitive

2. In wp-includes/class-wp-customize-widgets.php Line 826 & 1311

JSON-serializeable

It should be

JSON-serializable

3. In wp-includes/global-styles-and-settings.php Line 57

behaviour

It should be

behavior

Attachments (2)

60285.patch​ (2.4 KB ) - added by shailu25 3 years ago.
Patch Added
60285.2.patch​ (1.5 KB ) - added by shailu25 3 years ago.
Updated Patch

Download all attachments as: .zip

Change History (5)

@shailu25
3 years ago

Patch Added

@shailu25
3 years ago

Updated Patch

#1 @shailu25
3 years ago

I have added behavior by mistake, but not able to remove/edit in ticket description

Updated patch accordingly

#2 @sabernhardt
3 years ago

  • Milestone Awaiting Review → 6.5

The handbook says to use ​American spelling, so "behavior" is correct in the first patch, 60285.patch​.

Also, Text_Diff is an external dependency, but it's no longer maintained (#59580). Correcting the typo is probably fine in this ticket.

Commits that introduced typos to Core:

  • [7747] added Text_Diff
  • [27419] added the Widget Customizer
  • [55155] added "behaviour" in wp_get_global_settings()

#3 @SergeyBiryukov
3 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 57309:

Docs: Fix several typos in inline comments.

Follow-up to [7747], [27419], [55155].

Props shailu25, sabernhardt.
Fixes #60285.

Note: See TracTickets for help on using tickets.